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.

Comments (0)

Files changed (1)

tortoisehg/hgqt/workbench.py

             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)