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/StandardButton.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'components/StandardButton.qml') diff --git a/components/StandardButton.qml b/components/StandardButton.qml index 28572245..77cd2dad 100644 --- a/components/StandardButton.qml +++ b/components/StandardButton.qml @@ -146,6 +146,8 @@ Item { cursorShape: Qt.PointingHandCursor } + Keys.enabled: button.visible Keys.onSpacePressed: doClick() + Keys.onEnterPressed: Keys.onReturnPressed(event) Keys.onReturnPressed: doClick() } -- cgit v1.2.3