koekeishiya / skhd

Simple hotkey daemon for macOS
MIT License
6.29k stars 209 forks source link

Unable to map cmd + function key #289

Open martikyan opened 1 year ago

martikyan commented 1 year ago

I was unable to map cmd + function key on my Razer keyboard. Here's the skhd -o output

When pressed cmd keycode: 0x37 flags: 000000000001000000000001000010000 When pressed cmd + F4 keycode: 0x76 flags: 00000000100100000000000100001000

In the .skhdrc I have this line that opens the terminal, and it works on Mac's keyboard.

# open Terminal
cmd - 0xB1 : open -a Terminal

So when I add another line to open the terminal using my external keyboard, it just doesn't work, even after restarting the service

microSoftware commented 1 year ago

skhd -k "cmd + d" doesn't work but skhd -k "shift + alt - 7" work skhd -k 0x37 0x02 doesn't work but skhd -k 0x37 work and skhd -k 0x02 work

My goal being to do CMD+D in iterm2 using skhd