Explorar o código

Fix label dialog to accept on Return-press

Michael Pitidis %!s(int64=13) %!d(string=hai) anos
pai
achega
00991bd333
Modificáronse 2 ficheiros con 5 adicións e 0 borrados
  1. 3 0
      labelDialog.py
  2. 2 0
      labelme.py

+ 3 - 0
labelDialog.py

@@ -60,4 +60,7 @@ class LabelDialog(QDialog):
     def keyPressEvent(self, ev):
     def keyPressEvent(self, ev):
         if ev.key() == Qt.Key_Escape:
         if ev.key() == Qt.Key_Escape:
             self.undo()
             self.undo()
+            ev.accept()
+        else:
+            super(LabelDialog, self).keyPressEvent(ev)
 
 

+ 2 - 0
labelme.py

@@ -25,6 +25,8 @@ __appname__ = 'labelme'
 
 
 # FIXME
 # FIXME
 # - [low] Label validation/postprocessing breaks with TAB.
 # - [low] Label validation/postprocessing breaks with TAB.
+# - Don't select hidden labels.
+# - Update label list on shape deletion.
 
 
 # TODO:
 # TODO:
 # - Add a new column in list widget with checkbox to show/hide shape.
 # - Add a new column in list widget with checkbox to show/hide shape.