1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed bb0ab2a

workbench: include shortcut key in tooltip of several actions (refs #3231)

This cannot change tooltips of actions not created by "newaction" helper, but
at least it can provide hint for "Ctrl+.", "Ctrl+/", etc.

  • Participants
  • Parent commits 7e6f5d8
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/workbench.py

View file
             else:
                 action.setShortcut(keyseq)
         if tooltip:
+            if action.shortcut():
+                tooltip += ' (%s)' % action.shortcut().toString()
             action.setToolTip(tooltip)
         if data is not None:
             action.setData(data)