koekeishiya / skhd

Simple hotkey daemon for macOS
MIT License
6.07k stars 204 forks source link

Can't use special character (Ø) #275

Closed sigurdskatvedt closed 1 year ago

sigurdskatvedt commented 1 year ago

Due to me using a Norwegian keyboard the typical H,J,K,L-combo is moved one character to the right, making J,K,L,Ø the most comfortable keys to use as movement keys in VI. Ø is a unique Norwegian character. In my Neovim-config I have remapped everything to use these new keys and it works fine, but when I try to use Ø in my skhdrc it crashes the app, I don't know if this is intentional and me being a doofus or if it's a bug. The same happens if I try to the other Norwegian characters Æ or Å, so it seems to be a problem with language-specific characters.

koekeishiya commented 1 year ago

The parser only does ascii chars for key literals; you can use the keycode instead:

ø = 0x29, æ = 0x27, å = 0x21

sigurdskatvedt commented 1 year ago

Thank you!