Parcourir la source

Make some shortcuts and mnemonics more consistent

Michael Pitidis il y a 13 ans
Parent
commit
09ddb989ba
1 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 6 6
      labelme.py

+ 6 - 6
labelme.py

@@ -142,20 +142,20 @@ class MainWindow(QMainWindow, WindowMixin):
                 'Ctrl+Shift+S', 'save', u'Save labels to a different file',
                 enabled=False)
         close = action('&Close', self.closeFile,
-                'Ctrl+K', 'close', u'Close current file')
+                'Ctrl+W', 'close', u'Close current file')
         color1 = action('Polygon &Line Color', self.chooseColor1,
                 'Ctrl+L', 'color', u'Choose polygon line color')
         color2 = action('Polygon &Fill Color', self.chooseColor2,
-                'Ctrl+Shift+F', 'color', u'Choose polygon fill color')
+                'Ctrl+Shift+L', 'color', u'Choose polygon fill color')
 
-        createMode = action('Create\n&Polygons', self.setCreateMode,
+        createMode = action('Create\nPolygo&ns', self.setCreateMode,
                 'Ctrl+N', 'new', u'Start drawing polygons', enabled=False)
         editMode = action('&Edit\nPolygons', self.setEditMode,
                 'Ctrl+J', 'edit', u'Move and edit polygons', enabled=False)
 
-        create = action('&Create\nPolygon', self.createShape,
+        create = action('Create\nPolygo&n', self.createShape,
                 'Ctrl+N', 'new', u'Draw a new polygon')
-        delete = action('&Delete\nPolygon', self.deleteSelectedShape,
+        delete = action('Delete\nPolygon', self.deleteSelectedShape,
                 'Delete', 'delete', u'Delete', enabled=False)
         copy = action('&Duplicate\nPolygon', self.copySelectedShape,
                 'Ctrl+D', 'copy', u'Create a duplicate of the selected polygon',
@@ -190,7 +190,7 @@ class MainWindow(QMainWindow, WindowMixin):
                 'Ctrl+F', 'fit-window', u'Zoom follows window size',
                 checkable=True, enabled=False)
         fitWidth = action('Fit &Width', self.setFitWidth,
-                'Ctrl+W', 'fit-width', u'Zoom follows window width',
+                'Ctrl+Shift+F', 'fit-width', u'Zoom follows window width',
                 checkable=True, enabled=False)
         # Group zoom controls into a list for easier toggling.
         zoomActions = (self.zoomWidget, zoomIn, zoomOut, zoomOrg, fitWindow, fitWidth)