Request for Confirmation Prompt When Closing Editor via 'editor/file_quit' Shortcut #11640
Closed
rcanpahali
started this conversation in
Editor
Replies: 2 comments
-
Thanks for the proposal! Consolidating in #6915. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue Description
I'm currently using both Windows and macOS for different purposes (Windows for game dev and hobbies, and macOS for work-related tasks) and on daily basis, I switch between both operating systems.
Multiple times I've encountered an issue with the "editor/file_quit" shortcut (Windows:
Ctrl + Q
, macOS:Cmd + Q
) that can be quite disruptive.Here’s the current behavior:
If you’re focused on a script editor with unsaved changes and you press the shortcut, the editor shows a confirmation prompt, ensuring you don’t accidentally lose your work. However, if no script file is open, pressing the shortcut immediately closes the entire project without any warning or confirmation.
This has led to several frustrating situations for me:
Ctrl + Q
instead of another shortcut (e.g.,Alt + Q
), the engine immediately closes without notice.Cmd + Q
in some layouts), I’ve accidentally quit the entire engine and found myself staring at an empty desktop.Proposed Solution
I believe there should be a confirmation dialog that appears when trying to quit the engine, even if no script file is open. This dialog could ask:
“Are you sure you want to quit the engine?”
This confirmation would help prevent accidental termination of the engine, especially when working on a project or typing shortcuts that involve the same keys.
Why This Matters
For users like me who work across multiple platforms or use different keyboard layouts, accidental closures can be quite disruptive. It would enhance the user experience and prevent potential loss of time and focus if there’s a simple confirmation prompt for this action.
Steps to Reproduce
Request
I propose implementing a confirmation prompt when the "editor/file_quit" shortcut is triggered, when there are no open scripts, to prevent accidental closures.
This behavior would specifically apply to cases where the shortcut key (
Ctrl + Q
orCmd + Q
) is used and would not change/interfere with other default editor behaviors, such as clicking the "close window" button.Thank you for your consideration, and let me know if you need further clarification or additional details!
Beta Was this translation helpful? Give feedback.
All reactions