rxhanson / Multitouch-Community

Issue and feature request tracking for the Multitouch app
https://multitouch.app
38 stars 0 forks source link

"Hyperkey" remap doesn't work #165

Open nicojerome opened 11 months ago

nicojerome commented 11 months ago

Screenshot 2023-07-28 at 08 39 16

I try to map Caps-Lock to Hyperkey. However, it only sends "ALT" + whatever key I pressed, instead of the entire "CTRL+ALT+CMD+Shift" combination.

I usually use your "Hyperkey" standalone app to achieve this and it works perfectly. But when I try to achieve the same in Multitouch only, it doesn't work (yes I disabled the "Hyperkey App", don't have BTT running, tried restarts etc ... but it doesn't work).

Latest macOS, latest Multitouch version.

rxhanson commented 11 months ago

Multitouch uses the same underlying logic as Hyperkey, and in my usage, the two behave the same.

If by chance you did have them running at the same time and then you quit Hyperkey, it is possible that Multitouch could get tripped up, but it sounds like perhaps you should have avoided that scenario.

In Multitouch, we might see some logs that could point us in the right direction: Help > Debug > View Logging

Then try deleting and re-adding the hyper key remapping and see what the logs say.

For some reason, macOS accessibility permissions can easily get out of sync with keystroke processing. We should see something in the logs that will tell us if that's the issue. If that turns out to be the issue, then you can do the following:

  1. Quit Multitouch
  2. Go to System Settings - Privacy & Security - Accessibility.
  3. Disable Multitouch
  4. Remove Multitouch (with the minus button there)
  5. Restart your Mac and add privileges when prompted by the app.
nicojerome commented 11 months ago

Hi Ryan.

Hyperkey is not running anymore and I also removed its Accessibility privileges. Also did multiple restarts. So this can't be it.

This is what I'm getting when I remove and add the remapping in Multitouch:

Screenshot 2023-07-30 at 19 15 41

Anything?

Also tried your 5 steps, no change. The system still only receives the "ALT" modifier, instead of all hyperkey modifier keys.

Any ideas?

rxhanson commented 11 months ago

That all checks out (and the 5 steps weren't necessary here - sorry on that one).

The next steps here are on my side:

  1. I'll need to verify that there is nothing astray between the Multitouch and Hyperkey implementations
  2. I'll need to add more debug logging into Multitouch so we can get a clearer picture of what's going on here.

It might take me a little while go get to this, and will post back when I do.

thatside commented 5 months ago

Hijacking this thread as it might be related: I can't remap Non-US Backslash key for some reason (Section Sign). Here's the debug log: image First two lines were written as I was opening dropdowns to do the remap itself. Initial key mapping entry is for previous mapping (§ to a), the latter one is for the one I'm targeting (§ to `). Other remaps work correctly - I was able to remap right Cmd to A, for example. I have a Macbook with ISO layout (otherwise I won't be having this problem :D).

I tried hidutil remapping and that didn't work either - is there some specific behavior tied to remapping this specific key?

Off-topic, but might be useful for people looking to resolve this - I have also tried swapping the keyboard layout for one with -PC suffix, which resolves this issue when I'm typing on my Macbook keyboard but breaks everything for my ANSI external keyboard. I can, however, force my external keyboard to be treated like an ANSI keyboard and use -PC layouts - this kinda makes everything consistent and now I can finally use my drop-down iTerm shortcut (cmd+`).

rxhanson commented 5 months ago

@nicojerome Sorry I never followed up on this one. I finally have merged some Hyperkey changes into Multitouch that should fix this, and it will be in the next release.

@thatside I don't have a keyboard with the section sign that I could use to test this out, but there should be nothing special about remapping that key. If the hidutil remapping didn't work either, then perhaps you have something else on your Mac that might be causing some sort of issue?

wiesnero commented 4 months ago

Just wanted to contribute that i have the exact same issue as mentioned by the op. Never had Hyperkey installed before and have the issue on two different devices.

After seeing this thread i just downloaded Hyperkey to see if it would make any difference and indeed it works right away now.

Previously when i tried to set a Hotkey in Raycast for example it would never get all key strokes but just "Option". With Hyperkey it works as expected.

Using Multitouch v1.27.26 (181).

Avi-D-coder commented 1 week ago

I was having this issue, but I just updated and now hyper works.