From da437e77fb252ff27c27db12b9279f52195342fc Mon Sep 17 00:00:00 2001 From: bbedward Date: Tue, 17 Feb 2026 08:44:47 -0500 Subject: [PATCH] keybinds: auto-focus cheatsheet search --- quickshell/Modals/KeybindsModal.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/quickshell/Modals/KeybindsModal.qml b/quickshell/Modals/KeybindsModal.qml index 5359ff96..3ffc1a9d 100644 --- a/quickshell/Modals/KeybindsModal.qml +++ b/quickshell/Modals/KeybindsModal.qml @@ -20,7 +20,11 @@ DankModal { modalHeight: _maxH onBackgroundClicked: close() onOpened: { - Qt.callLater(() => modalFocusScope.forceActiveFocus()); + Qt.callLater(() => { + modalFocusScope.forceActiveFocus(); + if (contentLoader.item?.searchField) + contentLoader.item.searchField.forceActiveFocus(); + }); if (!Object.keys(KeybindsService.cheatsheet).length && KeybindsService.cheatsheetAvailable) KeybindsService.loadCheatsheet(); } @@ -65,6 +69,7 @@ DankModal { content: Component { Item { anchors.fill: parent + property alias searchField: searchField Column { anchors.fill: parent