From 8f12e97b7942a6635ac638e66690480ba1d8914c Mon Sep 17 00:00:00 2001 From: rating89us <45968869+rating89us@users.noreply.github.com> Date: Thu, 25 Nov 2021 20:30:04 +0100 Subject: [PATCH] LeftPanel: display full keyboard shortcuts for Windows, Mac, and Linux --- LeftPanel.qml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/LeftPanel.qml b/LeftPanel.qml index 450662d0..13c9b271 100644 --- a/LeftPanel.qml +++ b/LeftPanel.qml @@ -360,7 +360,8 @@ Rectangle { anchors.left: parent.left anchors.right: parent.right text: qsTr("Account") + translationManager.emptyString - symbol: qsTr("T") + translationManager.emptyString + symbol: (isMac ? "⌘" : qsTr("Ctrl+")) + "T" + translationManager.emptyString + onClicked: { parent.previousButton.checked = false parent.previousButton = accountButton @@ -381,7 +382,7 @@ Rectangle { anchors.left: parent.left anchors.right: parent.right text: qsTr("Send") + translationManager.emptyString - symbol: qsTr("S") + translationManager.emptyString + symbol: (isMac ? "⌘" : qsTr("Ctrl+")) + "S" + translationManager.emptyString onClicked: { parent.previousButton.checked = false parent.previousButton = transferButton @@ -403,7 +404,7 @@ Rectangle { anchors.left: parent.left anchors.right: parent.right text: qsTr("Address book") + translationManager.emptyString - symbol: qsTr("B") + translationManager.emptyString + symbol: (isMac ? "⌘" : qsTr("Ctrl+")) + "B" + translationManager.emptyString under: transferButton onClicked: { parent.previousButton.checked = false @@ -425,7 +426,7 @@ Rectangle { anchors.left: parent.left anchors.right: parent.right text: qsTr("Receive") + translationManager.emptyString - symbol: qsTr("R") + translationManager.emptyString + symbol: (isMac ? "⌘" : qsTr("Ctrl+")) + "R" + translationManager.emptyString onClicked: { parent.previousButton.checked = false parent.previousButton = receiveButton @@ -447,7 +448,7 @@ Rectangle { anchors.left: parent.left anchors.right: parent.right text: qsTr("Transactions") + translationManager.emptyString - symbol: qsTr("H") + translationManager.emptyString + symbol: (isMac ? "⌘" : qsTr("Ctrl+")) + "H" + translationManager.emptyString onClicked: { parent.previousButton.checked = false parent.previousButton = historyButton @@ -469,7 +470,7 @@ Rectangle { anchors.left: parent.left anchors.right: parent.right text: qsTr("Advanced") + translationManager.emptyString - symbol: qsTr("D") + translationManager.emptyString + symbol: (isMac ? "⌘" : qsTr("Ctrl+")) + "D" + translationManager.emptyString onClicked: { parent.previousButton.checked = false parent.previousButton = advancedButton @@ -490,7 +491,7 @@ Rectangle { anchors.left: parent.left anchors.right: parent.right text: qsTr("Settings") + translationManager.emptyString - symbol: qsTr("E") + translationManager.emptyString + symbol: (isMac ? "⌘" : qsTr("Ctrl+")) + "E" + translationManager.emptyString onClicked: { parent.previousButton.checked = false parent.previousButton = settingsButton