mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-28 18:56:32 +02:00
Merge pull request #3860
de81af0
RemoteNodeDialog: bind ok to return key (reemuru)
This commit is contained in:
commit
838b0179e5
@ -42,6 +42,13 @@ MoneroComponents.Dialog {
|
|||||||
|
|
||||||
onActiveFocusChanged: activeFocus && remoteNodeAddress.forceActiveFocus()
|
onActiveFocusChanged: activeFocus && remoteNodeAddress.forceActiveFocus()
|
||||||
|
|
||||||
|
function onOk() {
|
||||||
|
root.success = true;
|
||||||
|
root.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
function onCancel() { root.close(); }
|
||||||
|
|
||||||
function add(callbackOnSuccess) {
|
function add(callbackOnSuccess) {
|
||||||
root.editMode = false;
|
root.editMode = false;
|
||||||
root.callbackOnSuccess = callbackOnSuccess;
|
root.callbackOnSuccess = callbackOnSuccess;
|
||||||
@ -89,6 +96,11 @@ MoneroComponents.Dialog {
|
|||||||
|
|
||||||
daemonAddrLabelText: qsTr("Address") + translationManager.emptyString
|
daemonAddrLabelText: qsTr("Address") + translationManager.emptyString
|
||||||
daemonPortLabelText: qsTr("Port") + translationManager.emptyString
|
daemonPortLabelText: qsTr("Port") + translationManager.emptyString
|
||||||
|
|
||||||
|
Keys.enabled: root.visible
|
||||||
|
Keys.onEnterPressed: root.onOk()
|
||||||
|
Keys.onReturnPressed: root.onOk()
|
||||||
|
Keys.onEscapePressed: root.onCancel()
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
@ -116,6 +128,11 @@ MoneroComponents.Dialog {
|
|||||||
placeholderFontSize: 15
|
placeholderFontSize: 15
|
||||||
labelFontSize: 14
|
labelFontSize: 14
|
||||||
fontSize: 15
|
fontSize: 15
|
||||||
|
|
||||||
|
Keys.enabled: root.visible
|
||||||
|
Keys.onEnterPressed: root.onOk()
|
||||||
|
Keys.onReturnPressed: root.onOk()
|
||||||
|
Keys.onEscapePressed: root.onCancel()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user