From 38d412a3fa3bcf7b200bfc88b9a00a22e3b6601d Mon Sep 17 00:00:00 2001 From: selsta Date: Tue, 10 Dec 2019 02:48:03 +0100 Subject: components: handle enter and return --- components/InputDialog.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'components/InputDialog.qml') diff --git a/components/InputDialog.qml b/components/InputDialog.qml index c5963f04..637264b2 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() -- cgit v1.2.3