Skip to content

Commit

Permalink
Refactor shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Apr 22, 2018
1 parent ee34129 commit 9fa0c83
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions labelme/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,12 @@ def __init__(self, filename=None, output=None, store_data=True,
'Quit application')
open_ = action('&Open', self.openFile, 'Ctrl+O', 'open',
'Open image or label file')
opendir = action('&Open Dir', self.openDirDialog, 'Ctrl+u', 'open',
opendir = action('&Open Dir', self.openDirDialog, 'Ctrl+U', 'open',
u'Open Dir')
openNextImg = action('&Next Image', self.openNextImg, 'd', 'next',
openNextImg = action('&Next Image', self.openNextImg, 'D', 'next',
u'Open Next')

openPrevImg = action('&Prev Image', self.openPrevImg, 'a', 'prev',
openPrevImg = action('&Prev Image', self.openPrevImg, 'A', 'prev',
u'Open Prev')
save = action('&Save', self.saveFile, 'Ctrl+S', 'save',
'Save labels to file', enabled=False)
Expand Down Expand Up @@ -282,10 +282,10 @@ def __init__(self, filename=None, output=None, store_data=True,
self.zoomWidget.setEnabled(False)

zoomIn = action('Zoom &In', functools.partial(self.addZoom, 10),
QtGui.QKeySequence.ZoomIn, 'zoom-in',
'Ctrl++', 'zoom-in',
'Increase zoom level', enabled=False)
zoomOut = action('&Zoom Out', functools.partial(self.addZoom, -10),
QtGui.QKeySequence.ZoomOut, 'zoom-out',
'Ctrl+-', 'zoom-out',
'Decrease zoom level', enabled=False)
zoomOrg = action('&Original size',
functools.partial(self.setZoom, 100),
Expand Down

0 comments on commit 9fa0c83

Please sign in to comment.