ctrl + alt - p using right alt key and caps lock key (mapped to ctrl) does not work
- Dominant language
- C
- Stars
- 8.1k
- Forks
- 241
- PR merge metrics
- No merged PRs in 30d
Description
I'm using a 2015 Macbook Air's built-in keyboard, the physical layout is Italian but I set the ABC layout in the macOS settings, even though I'm not sure this matters.
It's confusing to explain so I'm just gonna give instructions on how to recreate the bug and, hopefully, you'll be able to reproduce and the issue'll be clear.
1. Open `System Preferences`, go to `Modifier Keys` and set the Caps Lock Key to Control

. Now both the ordinary `ctrl` key and the `Caps Lock` key on the keyboard work as `ctrl`.
2. In your `.skhdrc`, remove your `ctrl + alt - p` mapping if you have one, and add
```
ctrl + alt - p : osascript -e 'display notification "Hello world!" with title "Hi!"'
```
.
Now the `ctrl + alt - p` shortcut is supposed to send a very simple notification.
3. There are 4 ways to call this combination since we have 2 alt keys and 2 ctrl keys now. One of these ways does not work.
| | Left alt key | Right alt key |
| :------------------- | :----------: | ----------------: |
| "Caps Lock" key | Works | ⚠️**Does not work**⚠️ |
| Ordinary ctrl key | Works | Works |
The not working combination is `Caps Lock ctrl key + Right alt key - p`
Are you able to reproduce the issue?
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the four modifier combinations using the System Preferences Modifier Keys setting, the `.skhdrc` mapping, and the provided `osascript` notification command. Start by tracing how skhd handles Caps Lock as Control with Right Alt; done means that combination consistently triggers the notification like the other combinations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, macos
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100