From cc50c64e8dfb7e6f4e64d9915ed75583cf3b539d Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 12 Nov 2021 15:51:53 +0200 Subject: [PATCH] effects/overview: Forward unhandled keys to search field After user edits the name of a desktop, the search field is no longer focused. If the user starts typing text, one could expect that it will be forwarded to the search field without requiring a click. This change forwards unhandled key events to the search field to ensure that searching is intuitive. --- src/effects/overview/qml/ScreenView.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/effects/overview/qml/ScreenView.qml b/src/effects/overview/qml/ScreenView.qml index 95efae58f4..51c9499cb5 100644 --- a/src/effects/overview/qml/ScreenView.qml +++ b/src/effects/overview/qml/ScreenView.qml @@ -29,6 +29,9 @@ FocusScope { Keys.onEscapePressed: effect.deactivate(); + Keys.priority: Keys.AfterItem + Keys.forwardTo: searchField + Repeater { model: KWinComponents.ClientFilterModel { activity: KWinComponents.Workspace.currentActivity @@ -136,6 +139,7 @@ FocusScope { clearButtonShown: true Keys.priority: Keys.AfterItem Keys.forwardTo: heap + onTextEdited: forceActiveFocus(); } }