aboutsummaryrefslogtreecommitdiff
path: root/components/InlineButton.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/InlineButton.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/InlineButton.qml')
-rw-r--r--components/InlineButton.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/InlineButton.qml b/components/InlineButton.qml
index 45cf841c..402dade2 100644
--- a/components/InlineButton.qml
+++ b/components/InlineButton.qml
@@ -125,6 +125,8 @@ Item {
source: rect
}
+ Keys.enabled: inlineButton.visible
Keys.onSpacePressed: doClick()
+ Keys.onEnterPressed: Keys.onReturnPressed(event)
Keys.onReturnPressed: doClick()
}