Skip to content

Conversation

@sprocketc
Copy link
Collaborator

@sprocketc sprocketc commented Sep 11, 2023

Continuing on #10096. Now that the default keyboard behavior is deactivated, users will be able to remove the introduced binding if they want to. I moved the window handlers to a dedicated file to clean up the code. The binding was added to :shortcut.handler/global-non-editing-only to avoid closing the window while editing, which might be questionable. I can move it to global bindings if that's not what we want. I also suppressed some random infer build warnings here 6d15483.

Resolves #10176

@github-actions github-actions bot added the :type/enhancement Enhancement to product. Does not affect the overall basic use. label Sep 11, 2023
Copy link
Collaborator

@andelf andelf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andelf andelf force-pushed the enhance/add-close-window-shortcut branch from 2e8ce51 to dd9fd20 Compare September 12, 2023 13:57
@andelf
Copy link
Collaborator

andelf commented Sep 12, 2023

non-blocking: The developer tools window cannot be closed with mod+w. I prefer the old style of "mod+w".

@andelf andelf force-pushed the enhance/add-close-window-shortcut branch from dd9fd20 to b1b921c Compare September 14, 2023 14:22
@andelf andelf merged commit 89a4895 into master Sep 14, 2023
@andelf andelf deleted the enhance/add-close-window-shortcut branch September 14, 2023 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:type/enhancement Enhancement to product. Does not affect the overall basic use.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't close window with Cmd + w on Mac

3 participants