Browse Source

Show shortcut key in tool tooltips

In brackets. I couldn't translate it to an icon easily. It was possible but I'd have to create a giant mapping from every key to the key icons and add a bunch of icons and I don't think that's necessary.

Contributes to issue CURA-5634.
Ghostkeeper 6 years ago
parent
commit
f247c328c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/qml/Toolbar.qml

+ 1 - 1
resources/qml/Toolbar.qml

@@ -34,7 +34,7 @@ Item
             height: childrenRect.height
             Button
             {
-                text: model.name
+                text: model.name + (model.shortcut ? (" (" + model.shortcut + ")") : "")
                 iconSource: (UM.Theme.getIcon(model.icon) != "") ? UM.Theme.getIcon(model.icon) : "file:///" + model.location + "/" + model.icon
                 checkable: true
                 checked: model.active