Bug 444279

Summary: Please add keyboard shortcuts to open new instances of applications in the task manager
Product: [Plasma] plasmashell Reporter: Loucura <loucurapt>
Component: Task Manager and Icons-Only Task ManagerAssignee: Eike Hein <hein>
Status: ASSIGNED ---    
Severity: wishlist CC: nate, plasma-bugs, qydwhotmail
Priority: NOR Keywords: accessibility, usability
Version: master   
Target Milestone: 1.0   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Attachments: plasma-desktop patch
plasma-workspace patch

Description Loucura 2021-10-23 16:27:25 UTC
SUMMARY
KDE has Meta+1, Meta+2, etc. keyboard shortcuts to open the 1st, 2nd, etc. applications in the task manager.
However, it doesn't have Meta+Shift+1, Meta+Shift+2, etc. shortcuts to open new instances of this applications if they already have a window open. Or at least I couldn't find them.

Other desktops have this (Windows, GNOME, Cinnamon, others?), so it would be nice if KDE had this too.


STEPS TO REPRODUCE
1. Press Meta+1 to open the 1st application in the task manager.
2. Press Meta+Shift+1.


OBSERVED RESULT
A new instance of the 1st application in the task manager is not launched.
Instead, Shift+1 is sent to the focused window.


EXPECTED RESULT
A new instance of the 1st application in the task manager is launched.
Comment 1 Loucura 2022-01-11 18:57:21 UTC
Created attachment 145335 [details]
plasma-desktop patch
Comment 2 Loucura 2022-01-11 18:57:55 UTC
Created attachment 145336 [details]
plasma-workspace patch
Comment 3 Loucura 2022-01-11 19:15:59 UTC
I tried to implement this, and I almost got it working, but not completely.
I attached the respective patches for it anyway, as they may serve as a starting point for whoever gets to implement this (no need to mention me if they are used).
One is for plasma-desktop, the other is for plasma-workspace.

With these changes, the Meta+Shift+1..9 shortcuts actually appear in the Keyboard Shortcuts settings, but the default shortcuts are not working.
If i then manually assign the combination Meta+Shift+1 in the Keyboard Shortcuts settings, it actually shows as Meta+! (for my keyboard), and then the shortcut works.
I'm not knowledgeable enough in Qt/KDE to fix that.
Comment 4 Nate Graham 2022-01-13 18:24:26 UTC
Nice! If you submit your patches, developers are much more likely to stop by and help you there, than if they sit here in this Bugzilla ticket. :)