Bug 401495 - CTRL+Q should only close current window, not all windows
Summary: CTRL+Q should only close current window, not all windows
Status: CONFIRMED
Alias: None
Product: Falkon
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-28 09:16 UTC by Allan Sandfeld
Modified: 2025-03-12 19:29 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Sandfeld 2018-11-28 09:16:29 UTC
I would prefer if CTRL+Q only closed the current window, and not all falkon windows as that feels more like multiple applications. Then CTRL+W would close tab, and CTRL+Q the window.

It is just a wish though.
Comment 1 Kai Uwe Broulik 2018-11-28 11:55:37 UTC
Alt+F4?
Comment 2 Allan Sandfeld 2018-11-28 15:44:08 UTC
Alt+F4 is that just the Windows binding of CTRL+Q?

They tend to be the same thing.

I am just comparing to what other KDE applications do like KWrite or Konqueror.
Comment 3 Kai Uwe Broulik 2018-11-28 17:28:54 UTC
No, it's not. Alt+F4 closes the window (which is what you want), whereas Ctrl+Q quits the entire application. If the last window closes the app typically quits which is why they look very similar.
Comment 4 Allan Sandfeld 2018-11-28 18:05:09 UTC
Okay, if that is how you define in in Falkon, it is just not how most other KDE applications work in particular konqueror that Falkon replaces.

The idea in konqueror was that we didn't want people to think about which windows belong to with process, and you could configure it to make new window be other processes, or make determine it on the fly.
Comment 5 Allan Sandfeld 2018-11-28 18:08:43 UTC
Looking to redefine the binding, I just found an existing Falkon option to not close the application on CTRL+Q, apparently other people have thought it problematic.

Unfortunately it completely disables the short-cut instead of mapping it to close window.
Comment 6 Nate Graham 2018-11-28 19:44:50 UTC
Yeah, in most other KDE apps, Ctrl+Q closes the active window but not all instances of the running app.

It would be nice to harmonize this somehow.
Comment 7 Chris Rizzitello 2018-11-29 12:13:37 UTC
Tested a bit with some applictions.

Applictions where Ctrl+Q/Alt+F4 Kills current instance
Dolphin
Kate
Gwenview
Chrom(e|ium)
Konsole (Using Crtl+Shift+Q instead)
Okular
Kdenlive
Quassel

Applictions where Ctrl+Q kills all instances 
Falkon
Firefox
Libreoffice (calc)
Comment 8 Kai Uwe Broulik 2018-11-29 12:14:38 UTC
Note that instance isn't the same as window, you can have multiple windows in the same process.
Comment 9 Alexander Browne 2018-12-03 14:51:06 UTC
Another inconsistency is that CTRL+Q currently behaves differently with private windows. If you press CTRL+Q with a normal window focused while one or more private windows are open, all the normal windows are closed, but any private windows stay open. If you invoke it from a private window, only that window is closed, while any other windows, private or non-private, stay open. With Firefox at least, CTRL+Q always closes all windows. 

This may be related to other inconsistencies with how private windows work, such as how the New Window command behaves (https://bugs.kde.org/show_bug.cgi?id=397658).
Comment 10 Doncho N. Gunchev 2019-01-29 05:28:42 UTC
I for one like and use the current behavior.

I close everything with Ctrl+Q (tabs and widndows) and next time when I start Falkon it will bring back all windows and tabs. During the day I open tabs and sometimes windows with information I want to check later. I close everything, get back home and I read and close what I can one by one.

I was thinking of a global KDE setting to select the behavior, but it looks like Ctrl+F4 is global shortcut and Ctrl+Q is application specific one...
Comment 11 blitter@blaupost.de 2025-03-12 19:29:23 UTC
I think Ctrl+Q should close the application.
Ctrl+Shift+W should close the current window only.
This would be consistent with firefox.
(Open for discussion, but I'd like to have both behaviours.)