rxhanson / Rectangle

Move and resize windows on macOS with keyboard shortcuts and snap areas
https://rectangleapp.com
Other
25.63k stars 767 forks source link

Record hyper (control + opt + shift + cmd) + del doesn't work #900

Closed tim-hilde closed 1 month ago

tim-hilde commented 2 years ago

macOS version: 12.5.1 Rectangle version: 0.58

It is not possible to set hyper (control + opt + shift + cmd) + delete as a shortcut.

AndrewHaglund commented 2 years ago

FYI this does work using Karabiner to map Capslock to control + opt + shift + cmd — but not if you manually type all the keys.

tim-hilde commented 2 years ago

FYI this does work using Karabiner to map Capslock to control + opt + shift + cmd — but not if you manually type all the keys.

Actually, this doesnt work either. I am using Karabiner to create the hyper key you outlined but it doesnt work. Seems to be related to the "delete" key, as other combinations work. e.g. hyper + left-arrow

AndrewHaglund commented 2 years ago

My mistake, you are correct 👍

rxhanson commented 2 years ago

Interesting, appears to be some sort of bug with the shortcut recorder, MASShortcut.

If I record it using Hyperkey (https://hyperkey.app, written by yours truly), it works fine. If I record it by manually holding the modifiers, it does not work.

As a workaround, you could try exporting your config, setting almostMaximize to this:

    "almostMaximize" : {
      "keyCode" : 51,
      "modifierFlags" : 1966080
    },

and importing your config back in.

It's enough of an edge case that I probably won't make any immediate adjustments for it. I haven't updated MASShortcut in a little while, so it could be fixed there. If not, my suggestion would be to file an issue there, and I can always pull in the latest MASShortcut.

tim-hilde commented 2 years ago

Your workaround still doesnt work. Pressing said keys still doesn't work.

rxhanson commented 2 years ago

@tim-hilde Sorry that didn't work! Thanks for trying it out and posting back. Looks like a fix MASShortcut side might be the only solution (outside of using Hyperkey).

Edit: If Hyperkey also doesn't work, then that points to a shortcut conflict in macOS, of which I'm not aware of a good way to determine the source of the conflict.

tim-hilde commented 1 year ago

@rxhanson Would you mind testing this with an updated version of MASShortcut? I have no way of testing it myself, don't I?

ankerek commented 1 year ago

I have the same issue.

oschrenk commented 1 year ago

I have a smiliar issue but with Q .

hyper (control + opt + shift + cmd) + Q doesn't work either.

rxhanson commented 1 year ago

I will be changing out the existing shortcut recorder for a different one in an upcoming release, so at that time it will make sense to look back into this.

rxhanson commented 1 month ago

Closing this one out, mainly because it boils down to shortcut interception by another app or by macOS. At a certain point I decided to stick with MASShortcut and maintain a fork of it myself that Rectangle uses. If this happens to be a scenario that is indeed fixed by moving to a different shortcut recorder, then I will re-evaluate.