LeftPanel: display full keyboard shortcuts for Windows, Mac, and Linux

This commit is contained in:
rating89us 2021-11-25 20:30:04 +01:00 committed by GitHub
parent ecf5c501d6
commit 8f12e97b79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -360,7 +360,8 @@ Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
text: qsTr("Account") + translationManager.emptyString text: qsTr("Account") + translationManager.emptyString
symbol: qsTr("T") + translationManager.emptyString symbol: (isMac ? "⌘" : qsTr("Ctrl+")) + "T" + translationManager.emptyString
onClicked: { onClicked: {
parent.previousButton.checked = false parent.previousButton.checked = false
parent.previousButton = accountButton parent.previousButton = accountButton
@ -381,7 +382,7 @@ Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
text: qsTr("Send") + translationManager.emptyString text: qsTr("Send") + translationManager.emptyString
symbol: qsTr("S") + translationManager.emptyString symbol: (isMac ? "⌘" : qsTr("Ctrl+")) + "S" + translationManager.emptyString
onClicked: { onClicked: {
parent.previousButton.checked = false parent.previousButton.checked = false
parent.previousButton = transferButton parent.previousButton = transferButton
@ -403,7 +404,7 @@ Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
text: qsTr("Address book") + translationManager.emptyString text: qsTr("Address book") + translationManager.emptyString
symbol: qsTr("B") + translationManager.emptyString symbol: (isMac ? "⌘" : qsTr("Ctrl+")) + "B" + translationManager.emptyString
under: transferButton under: transferButton
onClicked: { onClicked: {
parent.previousButton.checked = false parent.previousButton.checked = false
@ -425,7 +426,7 @@ Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
text: qsTr("Receive") + translationManager.emptyString text: qsTr("Receive") + translationManager.emptyString
symbol: qsTr("R") + translationManager.emptyString symbol: (isMac ? "⌘" : qsTr("Ctrl+")) + "R" + translationManager.emptyString
onClicked: { onClicked: {
parent.previousButton.checked = false parent.previousButton.checked = false
parent.previousButton = receiveButton parent.previousButton = receiveButton
@ -447,7 +448,7 @@ Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
text: qsTr("Transactions") + translationManager.emptyString text: qsTr("Transactions") + translationManager.emptyString
symbol: qsTr("H") + translationManager.emptyString symbol: (isMac ? "⌘" : qsTr("Ctrl+")) + "H" + translationManager.emptyString
onClicked: { onClicked: {
parent.previousButton.checked = false parent.previousButton.checked = false
parent.previousButton = historyButton parent.previousButton = historyButton
@ -469,7 +470,7 @@ Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
text: qsTr("Advanced") + translationManager.emptyString text: qsTr("Advanced") + translationManager.emptyString
symbol: qsTr("D") + translationManager.emptyString symbol: (isMac ? "⌘" : qsTr("Ctrl+")) + "D" + translationManager.emptyString
onClicked: { onClicked: {
parent.previousButton.checked = false parent.previousButton.checked = false
parent.previousButton = advancedButton parent.previousButton = advancedButton
@ -490,7 +491,7 @@ Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
text: qsTr("Settings") + translationManager.emptyString text: qsTr("Settings") + translationManager.emptyString
symbol: qsTr("E") + translationManager.emptyString symbol: (isMac ? "⌘" : qsTr("Ctrl+")) + "E" + translationManager.emptyString
onClicked: { onClicked: {
parent.previousButton.checked = false parent.previousButton.checked = false
parent.previousButton = settingsButton parent.previousButton = settingsButton