aboutsummaryrefslogtreecommitdiff
path: root/components/InputDialog.qml
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-12-19 19:19:32 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-12-19 19:19:32 -0500
commitabd98b95f6e7d98544a0c1becc5aa719abfaeadb (patch)
treecb096bcdfba99dbb195adba7436100a9483b658c /components/InputDialog.qml
parent78f8cb259532de5626e90f1e1992bfe6ce0ef089 (diff)
parent38d412a3fa3bcf7b200bfc88b9a00a22e3b6601d (diff)
downloadmonzero-gui-abd98b95f6e7d98544a0c1becc5aa719abfaeadb.tar.gz
monzero-gui-abd98b95f6e7d98544a0c1becc5aa719abfaeadb.tar.xz
monzero-gui-abd98b95f6e7d98544a0c1becc5aa719abfaeadb.zip
Merge pull request #2578
38d412a components: handle enter and return (selsta)
Diffstat (limited to 'components/InputDialog.qml')
-rw-r--r--components/InputDialog.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/InputDialog.qml b/components/InputDialog.qml
index 2a69e79f..0bd2c5f4 100644
--- a/components/InputDialog.qml
+++ b/components/InputDialog.qml
@@ -110,6 +110,8 @@ Item {
color: MoneroComponents.Style.blackTheme ? "black" : "#A9FFFFFF"
}
+ Keys.enabled: root.visible
+ Keys.onEnterPressed: Keys.onReturnPressed(event)
Keys.onReturnPressed: {
root.close()
root.accepted()