Bug 150721 - Ctrl+Q should close documents, not exit LibreOffice
Summary: Ctrl+Q should close documents, not exit LibreOffice
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: All Linux (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: Exit
  Show dependency treegraph
 
Reported: 2022-08-31 14:00 UTC by Blau Araujo
Modified: 2022-09-09 08:32 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Ctrl+Q with Firefox (11.25 KB, image/png)
2022-09-01 07:40 UTC, Heiko Tietze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Blau Araujo 2022-08-31 14:00:48 UTC
Since all LO documents are opened in new windows, the shortcut Ctrl+Q should close only the document, not the entire suite. From the user's point of view, the focus is always on the document being worked on, and this is the default shortcut for closing windows and instances of most programs.
Comment 1 Rafael Lima 2022-08-31 18:10:10 UTC
Actually we have 2 different shortcuts:

Ctrl + Q -> Quits the entire application

Ctrl + W -> Closes the current window

I think what you want is to use Ctrl + W.
Comment 2 Blau Araujo 2022-08-31 18:32:17 UTC
(In reply to Rafael Lima from comment #1)
> Actually we have 2 different shortcuts:
> 
> Ctrl + Q -> Quits the entire application
> 
> Ctrl + W -> Closes the current window
> 
> I think what you want is to use Ctrl + W.

Yes, but how many users think of their document windows as part of a larger application? Also, most applications that allow multiple instances close just one window with Ctrl+Q. The ones that don't behave this way (like Firefox) display a clear warning about closing 2 or more windows: LO only asks whether or not to save each work (one dialog per window), which can cause confusion and accidents with data loss.
Comment 3 Rafael Lima 2022-08-31 18:41:03 UTC
TBH I've seen various shortcuts for the same purpose, so I don't think there's a standard shortcut for closing a single window or all windows of the same application.

Despite that, the idea of having a warning letting the user know that multiple windows are about to be closed seems interesting.

Let's hear from the UX team.
Comment 4 V Stuart Foote 2022-08-31 19:08:34 UTC
+1 for a pop-out message.  I've been bit a few times when not paying attention.
Comment 5 V Stuart Foote 2022-08-31 19:09:08 UTC
(In reply to V Stuart Foote from comment #4)
> +1 for a pop-out message.  I've been bit a few times when not paying
> attention.

Otherwise, no change to the <Ctrl>+Q close action.
Comment 6 Heiko Tietze 2022-09-01 07:39:51 UTC
Some loosely related tickets:

bug 144905 Ctrl+Q when a (modal) dialog is open in another module
bug 142176 No prompt on logout/shutdown etc.
bug 133542 Ctrl+W on single module closes app => NAB, by design
Comment 7 Heiko Tietze 2022-09-01 07:40:30 UTC
Created attachment 182139 [details]
Ctrl+Q with Firefox
Comment 8 Cor Nouws 2022-09-08 12:00:32 UTC
Never had problems using Ctrl-W / Alt-F4.
But don't mind a popup, as suggested.
Comment 9 Eyal Rozenberg 2022-09-08 22:34:29 UTC
Also support a pop-up dialog on Ctrl+Q.
Comment 10 Heiko Tietze 2022-09-09 08:32:44 UTC
We discussed this topic in the design meeting.

The actual request comes probably from the the fact that MSO has no exit function. It requires every open document to be closed individually - and after the last document is closed the application terminates. We do the same with ctrl+W or alt+F4. But additionally provide a function to exit quickly. And while the popup confirmation sounds reasonable it's a different situation when documents are not saved and another confirmation requires input. 

So we recommend to not change the behavior.