-
Notifications
You must be signed in to change notification settings - Fork 239
enhance: close all windows with ESC
#1509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
I do not like this PR. |
AFAIK none of these windows have unsaved state that the user needs to commit, so what's the risk of providing a quick dismiss option? Nothing is lost if the user accidentally hits |
This has nothing to do with the content displayed within the window, but only with the window's own displaying mode. Usually, if a window is independent of another window, has For example: on macOS, we use system caption buttons instead of the custom |
I've never used macOS and have never seen |
In that case, let's use ESC for these windows on Windows/Linux but not on Mac. I'm on Windows and am also very much used to these kinds of programs conveniently using ESC in all "spawned" (and stateless) windows except for the very top-level one (i.e the SourceGit main window). |
Have you really encountered windows that can be closed using the
|
Wireshark’s Preferences window adheres to this rule. However, even if you minimize this window, the main window remains disabled until the Preferences window is closed. However, it's more common to treat such pop-up windows like blame, history, etc., as dialog boxes—with only a close button—while still being standalone windows. |
It is because the preference window of Wireshark is still a modal dialog.
Currently, for modal dialogs in SourceGit, users can close it by ESC key.
The reason that the blame and histories windows are not dialogs is:
- those windows are resizable
- When these windows exist, the main window must be able to operate, such as when you click some sha
|
The NOTE: There's no real need to handle this differently in SourceGit on Mac - instead, this feature could be optional (in global Preferences) and disabled by default! |
My muscle memory expects dialogs to be easily dismissed with
ESC
, so it's quite jarring when it doesn't work.This PR ensures all chromeless windows close when escape is pressed.