From 66d67dc03538622874d1c3c75e569cde54ce8a3d Mon Sep 17 00:00:00 2001 From: Shai Date: Thu, 20 Aug 2026 16:41:45 +0300 Subject: [PATCH] Activate focused buttons with Enter --- qml/Main.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qml/Main.qml b/qml/Main.qml index 2996ac7..e6175a6 100644 --- a/qml/Main.qml +++ b/qml/Main.qml @@ -41,6 +41,14 @@ ApplicationWindow { palette.highlightedText: enabled ? "#202020" : "#777777" icon.color: enabled ? "#202020" : "#777777" + Keys.onPressed: function(event) { + if (event.key !== Qt.Key_Return && event.key !== Qt.Key_Enter) + return + event.accepted = true + if (installerButton.enabled && !event.isAutoRepeat) + installerButton.clicked() + } + background: Rectangle { implicitWidth: 80 implicitHeight: 44