Bug 424268 - Tooltips with selectable window thumbnails never receive key keyboard focus, even when activating grouped task with Meta+[number] keyboard shortcut
Summary: Tooltips with selectable window thumbnails never receive key keyboard focus, ...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.19.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2020-07-16 00:34 UTC by Unknown
Modified: 2022-09-02 18:58 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.25


Attachments
The Observed Result (329.90 KB, image/png)
2020-07-16 00:34 UTC, Unknown
Details
The existing appearance of hovering over the icon, this would be prefer for switching windows. (13.68 KB, image/png)
2020-07-16 00:35 UTC, Unknown
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2020-07-16 00:34:53 UTC
Created attachment 130154 [details]
The Observed Result

SUMMARY
The current UX for switching between windows of an already open application requires use of the mouse and typing hides open windows. Apologies if this is filed in the wrong location or if it is already filed somewhere else.

STEPS TO REPRODUCE
1. Open two windows of an application (say, Okular)
2. Press on the icon or use the shortcut for "activate task manager entry 1"

OBSERVED RESULT
See the "observed-window-switcher.png" attachment. The windows open up in the full screen view. Pressing keys does not select windows but instead activates the filter, which makes the windows disappear. This makes for an irritating experience when you have multiple windows open and you are switching between them using the win+n shortcuts, as you constantly have to use your mouse.


EXPECTED RESULT
[These are my thoughts and not necessarily the only thing I'd be comfortable with having; I would prefer something other than the current solution]
As in [1], which opens when you hover over the icon, the two existing windows pop up. This could be what pops up and pressing the same key again would cycle through the open windows, selecting each one in turn. Similar to how windows does it. I would prefer if one of the application windows is already focused that it first switches to the unopen one, rather than reopening the existing one.


SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.3
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0
Kernel Version: 5.7.8-arch1-1
OS Type: 64-bit

ADDITIONAL INFORMATION
[1]: See the next comment for attachment or https://i.imgur.com/F8KOQHI.png.
Comment 1 Unknown 2020-07-16 00:35:58 UTC
Created attachment 130155 [details]
The existing appearance of hovering over the icon, this would be prefer for switching windows.
Comment 2 Nate Graham 2020-07-16 03:48:19 UTC

*** This bug has been marked as a duplicate of bug 370258 ***
Comment 3 Unknown 2020-07-16 04:13:22 UTC
Based off the initial description, I don't think that this bug is a duplicate bug. I do not want *all* the windows to be maximised when pressing the window, I want to be able to easily switch between open windows (similar to the Alt+` shortcut) without having to deal with the two window full screen view popup.

You can see this functionality in Windows - open up two windows, and pressing on the win+n shortcut will open up a small window preview. Pressing win+n again will cycle through the open windows.
Comment 4 Nate Graham 2020-07-16 04:15:09 UTC
If you just want to switch between windows of the same app, Alt+tilde will do that.
Comment 5 Unknown 2020-07-16 04:17:27 UTC
I am aware of Alt+tilde. What I would look is for this to be available for when pressing Win+N on an app.

Say if I have Dolphin open, then press Win+N to open Firefox. Rather than opening the full screen view, a smaller view (a la Windows or when hovering over the icon) of which the available windows can be chosen by pressing Win+N more times.

This is not achievable through Alt+tilde, as this would require Firefox to be initially focused.
Comment 6 Nate Graham 2020-07-17 04:37:42 UTC
Ah so you basically want the thumbnail view to appear on click, not just on hover.
Comment 7 Unknown 2020-07-17 05:11:40 UTC
Yup, and with keyboard shortcuts, a la Windows.
Comment 8 Nate Graham 2020-07-17 19:55:27 UTC
Working on this. Well, most of it. Not sure the keyboard shortcut is needed since you'll be able to simply click on the grouped task to show the tooltips.
Comment 9 Unknown 2020-07-17 21:15:12 UTC
Thanks so much :)

Not sure what you mean - are you saying that there is no need to *implement* it [because of the existing "Activate Task Manager Entry N" shortcut or are you saying just that there is no need to have a keyboard shortcut because you can use the mouse? If the latter, I would prefer to be able to use a keyboard shortcut.
Comment 10 Nate Graham 2020-07-18 00:54:33 UTC
Yep, the existing Meta+number shortcut will Just Work™ for this.
Comment 11 Unknown 2020-07-18 01:25:22 UTC
Okay, great :)
Comment 12 Bug Janitor Service 2020-07-18 04:13:46 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/71
Comment 13 Nate Graham 2020-07-18 04:16:35 UTC
*** Bug 382308 has been marked as a duplicate of this bug. ***
Comment 14 Nate Graham 2020-07-18 04:17:01 UTC
*** Bug 390400 has been marked as a duplicate of this bug. ***
Comment 15 Nate Graham 2020-07-23 15:39:26 UTC
Git commit ebaddb7d82b76613dcc010058283df47bb628aaa by Nate Graham.
Committed on 23/07/2020 at 15:39.
Pushed by ngraham into branch 'master'.

[applets/taskmanager] Offer better options when activating grouped tasks

Currently we get many complaints about the behavior of clicking on
grouped tasks, especially for the Icons-Only Task Manager, where the
Present Windows effect is always used when available.

This commit overhauls what happens when you click on a grouped task to
offer three options:
1. Show tooltips (new default setting)
2. Show Present Windows effect
3. Show textual list (AKA group dialog)

The user is now free to choose in the settings window which visualization
best suits them.

This commit does not implement the most heavily-requested option--to
bring forward all of the windows belonging to a grouped task
(https://bugs.kde.org/show_bug.cgi?id=370258)--as it is still blocked by
some technical isues related to stacking order and outstanding UX
uncertainty regarding what should happen when one or more of the windows
in a group happens to beminimized. However, since this commit introduces
a config UI for choosing the desired behavior when activating a grouped
task, there is now a place to put that option once it is implemented.
Related: bug 390400, bug 370258
FIXED-IN: 5.20

Depends on https://invent.kde.org/frameworks/plasma-framework/-/merge_requests/39

M  +1    -1    CMakeLists.txt
M  +4    -0    applets/taskmanager/package/contents/config/main.xml
M  +49   -0    applets/taskmanager/package/contents/ui/ConfigBehavior.qml
M  +5    -3    applets/taskmanager/package/contents/ui/Task.qml
M  +27   -7    applets/taskmanager/package/contents/ui/code/tools.js

https://invent.kde.org/plasma/plasma-desktop/commit/ebaddb7d82b76613dcc010058283df47bb628aaa
Comment 16 Nate Graham 2020-07-25 01:22:41 UTC
Re-opening since this is only partially resolved by that commit. Keyboard focus is still a TODO.
Comment 17 Unknown 2020-09-29 06:10:02 UTC
Testing this out on 5.19.90, the functionality of "cycles through tasks" exist as an option for "clicking group task" in the icons-only task manager settings. This creates the desired *behaviour* for when Win+N clicking.

However, this does not show window tooltips with Win+N. It does, however, do this when hovering over with the mouse. This creates almost the ideal behaviour (for me, some people might prefer the textual list instead of window tooltips)

I was thinking that maybe this setting could be broken up into two options:
- "preview/hover display": tooltips, or textual list
   this would appear when win+n is *pressed*, but maybe not when the mouse is pressed (since it will already do so for hovering)
- "keyboard press": cycle through windows, present windows effect, textual list, tooltips
- "mouse click": cycle through windows, present windows, textual list, tooltips

(the last two could possibly collapse into one another, but I have different preferences for keyboards vs mouse clicking... so I'd prefer not).
Comment 18 Nate Graham 2022-09-02 18:58:39 UTC
The originally reported issue is now fixed in Plasma 5.25.