Commit bc1fc47d authored by Devin Lin's avatar Devin Lin 🎨

Fix StandardKey shortcut sequences in MenuItem showing as numbers

parent 1f0f210a
......@@ -76,9 +76,14 @@ T.MenuItem {
Label {
id: shortcut
Layout.alignment: Qt.AlignVCenter
visible: controlRoot.action && controlRoot.action.hasOwnProperty("shortcut") && controlRoot.action.shortcut !== undefined
text: visible ? controlRoot.action.shortcut : ""
Shortcut {
id: itemShortcut
sequence: (parent.visible && controlRoot.action !== null) ? controlRoot.action.shortcut : ""
}
text: visible ? itemShortcut.nativeText : ""
font: controlRoot.font
color: label.color
horizontalAlignment: Text.AlignRight
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment