1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed c822f88

workbench: assign shortcut keys to incoming/outgoing actions (closes #3243)

"<" for incoming, and ">" for outgoing. No shortcut keys for pull/push,
which shouldn't be triggered accidentally.

  • Participants
  • Parent commits d12db0e
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/workbench.py

View file
  • Ignore whitespace
         self.menuView.addMenu(menu)
 
         newaction(_('&Incoming'), data='incoming', icon='hg-incoming',
-                  enabled='repoopen', toolbar='sync')
+                  enabled='repoopen', toolbar='sync', shortcut='Ctrl+Shift+,')
         newaction(_('&Pull'), data='pull', icon='hg-pull',
                   enabled='repoopen', toolbar='sync')
         newaction(_('&Outgoing'), data='outgoing', icon='hg-outgoing',
-                  enabled='repoopen', toolbar='sync')
+                  enabled='repoopen', toolbar='sync', shortcut='Ctrl+Shift+.')
         newaction(_('P&ush'), data='push', icon='hg-push',
                   enabled='repoopen', toolbar='sync')
         menuSync.addActions(self.synctbar.actions())