Bug 493216 - Widget config windows can't be closed by Ctrl+W shortcut; only Alt+F4
Summary: Widget config windows can't be closed by Ctrl+W shortcut; only Alt+F4
Status: CLOSED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.1.5
Platform: Other Other
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: usability
: 493214 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-09-16 17:18 UTC by reports_go_brrr
Modified: 2025-03-05 14:22 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Showcase (2.67 MB, video/mp4)
2024-09-16 17:18 UTC, reports_go_brrr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description reports_go_brrr 2024-09-16 17:18:42 UTC
Created attachment 173736 [details]
Showcase

SUMMARY
Applet plasmoid settings windows can't in Ctrl+Q althought they must.
Works under X11 and Wayland.

STEPS TO REPRODUCE
1. Add any applet to Desktop or panel
2. Enter it's settings by Right Clicking upon it and go to "Configure {Applet-name}"
3. Click upon the window to focus on it and press Ctrl+Q shortcut

OBSERVED RESULT
Ctrl+Q doesn't closes the program.

EXPECTED RESULT
To make it to work.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.9-arch1-2 (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Vanilla KDE Plasma, vanilla EndeavourOS.
Keys capturing done by ShowMeTheKey.
Comment 1 Justin Zobel 2024-09-16 17:31:23 UTC
Confirmed on git master.
Comment 2 Nate Graham 2024-09-16 17:41:59 UTC
Ctrl+Q is the "Quit Application" shortcut. This works when you're in an app like System Settings. It does not work when you're in Plasma, because you probably don't want to quit Plasma! And these widget config windows aren't apps, they're just windows spawned by Plasma. So you're probably looking for the "Close Window" shortcut which is Ctrl+W. That will close them (as well 

If this works on X11, that's a funny bug! It shouldn't be working. But it's probably not worth looking into since fixing it would undoubtedly trigger more bug reports.
Comment 3 Nate Graham 2024-09-16 17:45:33 UTC
*** Bug 493214 has been marked as a duplicate of this bug. ***
Comment 4 reports_go_brrr 2024-09-16 18:02:21 UTC
To Nate Graham,
Not Ctrl+Q nor Ctrl+W works for me under X11 and Wayland.
I want to close window, not Plasma, even if it is bound to Plasma specific things. wtf
Comment 5 Nate Graham 2024-09-17 16:27:20 UTC
Like I said, it's intentional and expected that Ctrl+Q doesn't close individual windows. Ctrl+W and Alt+F4 do this.

However I do see now that Ctrl+W isn't working here. We can make the bug report be about that.
Comment 6 reports_go_brrr 2024-09-19 17:33:22 UTC
Also, same goes with all windows which can be opened with `kcmshell6`. The full list of those is in `kcmshell6 --list`.
Comment 7 Akseli Lahtinen 2024-10-25 14:29:29 UTC
Just to add to the discussion, Ctrl+W is usually used by apps to close a tab, and apps that do not have any tabs open will just close instead.

For example big apps like Firefox and Chromium do this with tabs.
Comment 8 Nate Graham 2024-10-25 15:10:45 UTC
To add even a bit more, this is generally the world as it kinda-sorta exists:

Ctrl+Q: terminate the app and close all open windows.
Alt+F4: close the window irrespective of how many tabs it has open.
Ctrl+W: close the active tab. When the last tab is closed, or if the window has no tabs, close the window.

The only one that's really consistent is Alt+F4 which is implemented at the window manager level; Ctrl+Q and Ctrl+W need to be implemented in the app or toolkit as needed. I suppose in principle Ctrl+Q could potentially be implemented at the window manager level too, but Ctrl+W always needs to be implemented by the app or toolkit.
Comment 9 Niccolò Venerandi 2024-10-30 14:24:28 UTC
I'm not sure this bug makes sense as stated. There are many applications or popups that can't be closed with Ctrl+W, e.g. System Settings or the settings / about window of any application. I believe it makes sense (only?) for applications that have user-editable tabs to have such a shortcut, and I thus don't see the need to port it to applet settings, which don't have such tabs. It would also be inconsistent with other popups throught the system. 

Rather, this is how I think things should work:
- Alt+F4 for everything
- Ctrl+Q for windows
- Esc for popups

Applet settings are popups and they do close if you press "Esc", so I think the status quo currently makes sense. If not, what should be changed exactly?
Comment 10 TraceyC 2025-02-10 15:34:59 UTC
Setting this to needsinfo since we're waiting on information from the reporter
Comment 11 reports_go_brrr 2025-02-15 00:06:12 UTC
I confirm that Esc does closes kcmshell6 and Applet windows. 

I suppose Ctrl+Q for Applet windows like `Desktop and Wallpapers` will improve consistency over desktop.
For example: Right-click menu in Desktop has `Desktop and Wallpapers` and `Display Configuration`. In case of `Display Configuration`, it can be closed by Ctrl+Q, but `Desktop and Wallpapers` can't be.
Esc shortcut should not be removed for Applet windows but Ctrl+Q should be added.
Comment 12 reports_go_brrr 2025-02-15 00:07:30 UTC
Niccolo got it accurate.
Comment 13 TraceyC 2025-02-18 16:47:15 UTC
I set the version back to what it had been. Please don't change this. See the field descriptions here for an explanation
https://bugs.kde.org/page.cgi?id=fields.html#alias

(In reply to reports_go_brrr from comment #11)
> For example: Right-click menu in Desktop has `Desktop and Wallpapers` and
> `Display Configuration`. In case of `Display Configuration`, it can be
> closed by Ctrl+Q, but `Desktop and Wallpapers` can't be.

I confirm this inconsistent behavior on 6.3.0 and git-master
Comment 14 Nate Graham 2025-02-18 23:39:57 UTC
Renaming because not being closable by Ctrl+Q is intentional. That shortcut is "quit app" and that shouldn't close individual windows of Plasma. What we need to implement support for is Ctrl+W which is "close tab or window".
Comment 15 Nate Graham 2025-03-04 19:43:51 UTC
I started writing out a big "Codify window closing shortcuts" VDG issue, but after writing it, I concluded there isn't really anything we can do to make this significantly better, and the effort-to-reward radio is pretty poor.

These Plasma config windows are dialogs, so they already respond as normal dialogs should: to Esc and Alt+F4. We could *maybe* make windows under KDE's control with no tabs or no remaining tabs (including these) respond to Ctrl+W as well, but I believe that falls into the "effort-to-reward ratio not great" category, and we couldn't do this for non-KDE software anyway. And dialog windows responding to Ctrl+Q is definitely wrong since that's for quitting entire apps.

In other words, I think Niccolò was right. Closing again, sorry!
Comment 16 reports_go_brrr 2025-03-05 11:29:59 UTC
No need to "sorry". If not Ctrl+Q, then Ctrl+W will better than nothing in this issue.
I expect solution, not mute of it.
Comment 17 Nate Graham 2025-03-05 14:22:05 UTC
I'm afraid you may have to adjust your expectations. This software is provided for free, by people who are either volunteers, or paid to work on tasks their employer wants them to work on. As such, their time is spent on what they want to work on, or what the entity providing their income wants them to work on. In cases where this intersects with what you want worked on, that's great! In other cases, you'll probably have to become a volunteer and work on it yourself.

My own estimation of the effort-to-reward ratio of implementing Ctrl+W for every Qt or KDE dialog window in existence is that it's likely not very high, but I could be wrong. If you'd like to work on this, please feel free! If and when there's a patch, we can mark it as resolving this bug report. Until then, I don't think there's much sense in keeping the bug report open if it's not currently planned.

Thanks for understanding. For additional information, I'd recommend reading through https://community.kde.org/Get_Involved/Issue_Reporting#Issue_tracker_etiquette