Commit a4b41c84 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

effects/windowview: Redirect key events to search field

Redirect key events to search field so user can search for windows
without manually focusing the search field. It matches the behavior of
the overview effect.

BUG: 455100
parent 62b9d037
Pipeline #191837 passed with stage
in 32 minutes and 53 seconds
......@@ -36,6 +36,9 @@ Item {
Keys.onEscapePressed: effect.deactivate(animationDuration);
Keys.priority: Keys.AfterItem
Keys.forwardTo: searchField
KWinComponents.DesktopBackgroundItem {
activity: KWinComponents.Workspace.currentActivity
desktop: KWinComponents.Workspace.currentVirtualDesktop
......@@ -74,6 +77,7 @@ Item {
Layout.preferredWidth: Math.min(parent.width, 20 * PlasmaCore.Units.gridUnit)
focus: true
Keys.priority: Keys.AfterItem
Keys.forwardTo: heap
Keys.onPressed: {
switch (event.key) {
case Qt.Key_Down:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment