mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 03:42:05 +02:00
components: handle enter and return
This commit is contained in:
parent
f03ea0461c
commit
38d412a3fa
@ -125,6 +125,8 @@ Item {
|
|||||||
source: rect
|
source: rect
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Keys.enabled: inlineButton.visible
|
||||||
Keys.onSpacePressed: doClick()
|
Keys.onSpacePressed: doClick()
|
||||||
|
Keys.onEnterPressed: Keys.onReturnPressed(event)
|
||||||
Keys.onReturnPressed: doClick()
|
Keys.onReturnPressed: doClick()
|
||||||
}
|
}
|
||||||
|
@ -110,6 +110,8 @@ Item {
|
|||||||
color: MoneroComponents.Style.blackTheme ? "black" : "#A9FFFFFF"
|
color: MoneroComponents.Style.blackTheme ? "black" : "#A9FFFFFF"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Keys.enabled: root.visible
|
||||||
|
Keys.onEnterPressed: Keys.onReturnPressed(event)
|
||||||
Keys.onReturnPressed: {
|
Keys.onReturnPressed: {
|
||||||
root.close()
|
root.close()
|
||||||
root.accepted()
|
root.accepted()
|
||||||
|
@ -254,6 +254,7 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Keys.enabled: root.visible
|
Keys.enabled: root.visible
|
||||||
|
Keys.onEnterPressed: Keys.onReturnPressed(event)
|
||||||
Keys.onReturnPressed: {
|
Keys.onReturnPressed: {
|
||||||
root.close()
|
root.close()
|
||||||
if (passwordDialogMode) {
|
if (passwordDialogMode) {
|
||||||
@ -352,6 +353,8 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Keys.enabled: root.visible
|
||||||
|
Keys.onEnterPressed: Keys.onReturnPressed(event)
|
||||||
Keys.onReturnPressed: {
|
Keys.onReturnPressed: {
|
||||||
if (passwordInput1.text === passwordInput2.text) {
|
if (passwordInput1.text === passwordInput2.text) {
|
||||||
root.close()
|
root.close()
|
||||||
|
@ -146,6 +146,8 @@ Item {
|
|||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Keys.enabled: button.visible
|
||||||
Keys.onSpacePressed: doClick()
|
Keys.onSpacePressed: doClick()
|
||||||
|
Keys.onEnterPressed: Keys.onReturnPressed(event)
|
||||||
Keys.onReturnPressed: doClick()
|
Keys.onReturnPressed: doClick()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user