Skip to content
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

Cannot set CMD+W shortcut to maximize windows #1471

Open
valentinozegna opened this issue Sep 18, 2024 · 2 comments
Open

Cannot set CMD+W shortcut to maximize windows #1471

valentinozegna opened this issue Sep 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@valentinozegna
Copy link

macOS version: 15.0 (24A335)
Rectangle version: v0.83 (89)

I have used Spectacle for a very long time, and one of my favorite shortcuts was CMD+W to Maximize a window.
Spectacle automatically overrides the OS, so CMD+W does not closes windows anymore, and it instead maximizes windows.

This cannot be reproduced in Rectangle. Is that intended, or is that a limitation of the app?
I have tried to add custom keyboard shortcuts in App Shortcuts, to modify the shortcut for 'Close' and 'Close Window' setting them to something different than CMD+W. Still, Rectangle won't allow me to register CMD+W to maximize windows.
It almost feels like the CMD+W shortcut is "forbidden" somehow.

I know I could set anything else to maximize windows in Rectangle, like CMD+Shift+W for instance, but muscle memory is really hard to undo! Besides, I think it's worth looking into this and why this is happening.

@valentinozegna valentinozegna added the bug Something isn't working label Sep 18, 2024
@rxhanson
Copy link
Owner

This is a precedent set by the shortcut recorder used in Rectangle to not remap cmd+w. I don't have plans to change this at this time.

You can work around it by exporting the config and editing the entry for "maximize" to be

      "keyCode" : 13,
      "modifierFlags" : 1048576

Then importing it back in.

@valentinozegna
Copy link
Author

That worked, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants