Bug 455100 - Selecting the search bar with the keyboard is only possible once
Summary: Selecting the search bar with the keyboard is only possible once
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-present-windows (show other bugs)
Version: 5.24.90
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 455354 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-06-09 19:55 UTC by Ilya Bizyaev
Modified: 2022-06-16 22:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Bizyaev 2022-06-09 19:55:37 UTC
(split out of https://bugs.kde.org/show_bug.cgi?id=454842)

SUMMARY

If I trigger the effect with my mouse, the search bar is not selected, and I can press Ctrl-F or the up arrow once to select it. But once I navigate away from it, I can no longer return to it without the mouse.
If I trigger the effect with my keyboard, the search bar is focused from the start, and if I navigate away from it, there's no way back without the mouse.


SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.4
KDE Plasma Version: 5.24.90
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.2
Graphics Platform: X11
Graphics Processor: Mesa Intel® UHD Graphics

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-06-10 14:37:21 UTC
On Wayland, I can always focus it with Ctrl+F. But I can reproduce that you can't use the up arrow key to get back to it.

Regardless, once you start typing, doesn't it automatically put text in the search field?
Comment 2 Ilya Bizyaev 2022-06-11 08:20:57 UTC
Only until I focus one of the windows with the keyboard — after that, letter key presses don't go anywhere.
Comment 3 Bug Janitor Service 2022-06-16 07:30:14 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/2529
Comment 4 Vlad Zahorodnii 2022-06-16 08:10:35 UTC
Git commit a4b41c84e146062851b8adf96b9cd4ee512f52df by Vlad Zahorodnii.
Committed on 16/06/2022 at 07:26.
Pushed by vladz into branch 'master'.

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.

M  +4    -0    src/effects/windowview/qml/main.qml

https://invent.kde.org/plasma/kwin/commit/a4b41c84e146062851b8adf96b9cd4ee512f52df
Comment 5 Vlad Zahorodnii 2022-06-16 08:13:11 UTC
Git commit 6aed240f880375009dc5759ea1c620842d59d9ef by Vlad Zahorodnii.
Committed on 16/06/2022 at 08:13.
Pushed by vladz into branch 'Plasma/5.25'.

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.


(cherry picked from commit a4b41c84e146062851b8adf96b9cd4ee512f52df)

M  +4    -0    src/effects/windowview/qml/main.qml

https://invent.kde.org/plasma/kwin/commit/6aed240f880375009dc5759ea1c620842d59d9ef
Comment 6 Nate Graham 2022-06-16 22:56:11 UTC
*** Bug 455354 has been marked as a duplicate of this bug. ***