mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-18 10:01:11 +00:00
SuccessfulTxDialog: fix keys handling
This commit is contained in:
parent
96f9c11320
commit
0fdf81bc92
1 changed files with 1 additions and 25 deletions
|
@ -45,20 +45,11 @@ Rectangle {
|
||||||
radius: 10
|
radius: 10
|
||||||
border.color: MoneroComponents.Style.blackTheme ? Qt.rgba(255, 255, 255, 0.25) : Qt.rgba(0, 0, 0, 0.25)
|
border.color: MoneroComponents.Style.blackTheme ? Qt.rgba(255, 255, 255, 0.25) : Qt.rgba(0, 0, 0, 0.25)
|
||||||
border.width: 1
|
border.width: 1
|
||||||
focus: true
|
|
||||||
Keys.enabled: true
|
Keys.enabled: true
|
||||||
Keys.onEscapePressed: {
|
Keys.onEscapePressed: {
|
||||||
root.close()
|
root.close()
|
||||||
root.rejected()
|
root.rejected()
|
||||||
}
|
}
|
||||||
Keys.onEnterPressed: {
|
|
||||||
root.close()
|
|
||||||
root.accepted()
|
|
||||||
}
|
|
||||||
Keys.onReturnPressed: {
|
|
||||||
root.close()
|
|
||||||
root.accepted()
|
|
||||||
}
|
|
||||||
KeyNavigation.tab: doneButton
|
KeyNavigation.tab: doneButton
|
||||||
|
|
||||||
Clipboard { id: clipboard }
|
Clipboard { id: clipboard }
|
||||||
|
@ -72,7 +63,6 @@ Rectangle {
|
||||||
function open(txid) {
|
function open(txid) {
|
||||||
root.transactionID = txid;
|
root.transactionID = txid;
|
||||||
root.visible = true;
|
root.visible = true;
|
||||||
root.forceActiveFocus();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function close() {
|
function close() {
|
||||||
|
@ -156,13 +146,6 @@ Rectangle {
|
||||||
text: qsTr("Open folder") + translationManager.emptyString;
|
text: qsTr("Open folder") + translationManager.emptyString;
|
||||||
width: 200
|
width: 200
|
||||||
KeyNavigation.tab: doneButton
|
KeyNavigation.tab: doneButton
|
||||||
Keys.enabled: openFolderButton.visible
|
|
||||||
Keys.onReturnPressed: openFolderButton.onClicked
|
|
||||||
Keys.onEnterPressed: openFolderButton.onClicked
|
|
||||||
Keys.onEscapePressed: {
|
|
||||||
root.close()
|
|
||||||
root.rejected()
|
|
||||||
}
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
oshelper.openContainingFolder(walletManager.urlToLocalPath(saveTxDialog.fileUrl))
|
oshelper.openContainingFolder(walletManager.urlToLocalPath(saveTxDialog.fileUrl))
|
||||||
}
|
}
|
||||||
|
@ -172,15 +155,8 @@ Rectangle {
|
||||||
id: doneButton
|
id: doneButton
|
||||||
text: qsTr("Done") + translationManager.emptyString;
|
text: qsTr("Done") + translationManager.emptyString;
|
||||||
width: 200
|
width: 200
|
||||||
focus: true
|
focus: root.visible
|
||||||
KeyNavigation.tab: openFolderButton
|
KeyNavigation.tab: openFolderButton
|
||||||
Keys.enabled: doneButton.visible
|
|
||||||
Keys.onReturnPressed: doneButton.onClicked
|
|
||||||
Keys.onEnterPressed: doneButton.onClicked
|
|
||||||
Keys.onEscapePressed: {
|
|
||||||
root.close()
|
|
||||||
root.rejected()
|
|
||||||
}
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
root.close()
|
root.close()
|
||||||
root.accepted()
|
root.accepted()
|
||||||
|
|
Loading…
Reference in a new issue