Closed pizdoponi closed 4 months ago
This looks like potentially a dupe of https://github.com/jtroo/kanata/issues/975 but your observation that some special keys behave correctly is interesting π€
The issues are very similar, my bad for missing it. I managed to solve the problem following this guide from #975.
A quick note for anyone having the same problem. The following resolved the issue for me:
defsrc
put the actual fn keys on the f-row.A very simple config to illustrate the point:
(defsrc
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
lsgt 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ]
caps a s d f g h j k l ; ' \ ret
lsft grv z x c v b n m , . / rsft
fn lctl lalt lmet spc rmet ralt
)
(deflayer base
;; everything is exactly the same, only the f-row is changed.
;; you can of course change any of the other mappings.
esc π
π β β β β ββ βΆβΈ βΆβΆ π π π
lsgt 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ]
caps a s d f g h j k l ; ' \ ret
lsft grv z x c v b n m , . / rsft
fn lctl lalt lmet spc rmet ralt
)
Maybe the f-row keys are registered as fn keys and the operating system does something to make them into brightness/audio/do not disturb etc. keys, but underneath they are still fn keys, and thus where not being processed correctly in the config, because it tries to reference a key that isn't there?
Anyhow, I managed to resolve the issue, so I'm closing this.
Requirements
Describe the bug
When kanata is not running, the keys on the uppermost row (function keys row) work as expected. When I press screen brightness down, screen brightness decreases, when I press mute button, the audio is muted, etc.
I tried to obtain the same behavior with kanata, to no avail. In defsrc I put the relevant icons on their respective keys, but they act as function keys. Thus when I press π, instead of volume increasing, f12 is registered.
I further tried to put π key on "keyboard proper", where the ] character is otherwise located. Pressing that key, the volume increases. Therefore it seems something must be wrong with the uppermost row, where the keys are registered as function keys when they should not be.
There is an option to have the function keys act as actual function keys on macos, but I have that turned off all the time (picture below).
The keyboard input source I am using is: ABC - Extended
Relevant kanata config
To Reproduce
system settings > keyboard > text input > input sources
selectABC - Extended
as input sourceExpected behavior
The screen brightness up/down, media prev/pause/next, volume mute/down/up keys on the function row keys do what they should instead of being registered as function keys.
Kanata version
kanata 1.6.0
Debug logs
Operating system
MacOS Sonoma 14.3
Additional context
Just wanted to drop a quick thank you for amazing work