Use non-alphanumeric character in hotkey definition - across layouts
- Dominant language
- C
- Stars
- 8.1k
- Forks
- 241
- PR merge metrics
- No merged PRs in 30d
Description
I want to use the semicolon in the definition of a hotkey. And I want to be able to use that hotkey on multiple keyboard layouts (e.g. qwerty and dvorak).
If I use `0x29` as suggested [here](https://github.com/koekeishiya/skhd/issues/205), the hotkey works fine when I have selected the qwerty layout.
However, when using the dvorak layout, the shortcut now triggers on "s" - which is in the same physical location on the keyboard as the semicolon key on qwerty. The keycode `0x29` is tied to a ***location*** on the keyboard, not to the character on that key.
Therefore, my question/issue: **How to define non-alphanumeric characters in shortcuts, so that they are tied to the character and not to the location on the keyboard?**
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no files or tests. Start by locating hotkey-definition parsing and macOS keyboard-layout handling, then compare the existing 0x29 behavior under qwerty and dvorak. Done means a semicolon hotkey is tied to the character rather than its physical key location across both layouts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, macos
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100