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/InlineButton.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'components/InlineButton.qml') 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() } -- cgit v1.2.3