Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: grv key outputting section symbol in macos #1584

Closed
2 tasks done
svban opened this issue Mar 26, 2025 · 4 comments
Closed
2 tasks done

Bug: grv key outputting section symbol in macos #1584

svban opened this issue Mar 26, 2025 · 4 comments
Assignees
Labels
bug Something isn't working macos Issue pertains to macos; jtroo has no macOS devices and does not maintain the support for this OS.

Comments

@svban
Copy link

svban commented Mar 26, 2025

Requirements

Describe the bug

grv key on press outputting section symbol (§) in macos.

Relevant kanata config

`
(defcfg
process-unmapped-keys yes
)

(defalias
sa (tap-hold 200 200 a lsft)
as (tap-hold 200 200 s lalt)
cd (tap-hold 200 200 d lctl)
mf (tap-hold 200 200 f lmet)

mj (tap-hold 200 200 j lmet)
ck (tap-hold 200 200 k lctl)
al (tap-hold 200 200 l lalt)
s; (tap-hold 200 200 ; lsft)

)

(defsrc
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
grv 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 z x c v b n m , . / rsft up
fn lctl lalt lmet spc rmet ralt left down rght
)

(deflayer qwerty
esc brdn brup f3 f4 bldn blup prev pp next mute vold volu
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ]
caps @sa @as @cd @mf @nav h @mj @ck @al @s; ' ret
fn z x c v b n m , . / rsft up
fn lctl lalt tab spc bspc ralt left down rght
)
`

To Reproduce

na

Expected behavior

grv key should output tilde

Kanata version

kanata 1.8.0

Debug logs

No response

Operating system

mac os 15.3.2

Additional context

No response

@svban svban added the bug Something isn't working label Mar 26, 2025
@jtroo jtroo added the macos Issue pertains to macos; jtroo has no macOS devices and does not maintain the support for this OS. label Mar 27, 2025
@jtroo
Copy link
Owner

jtroo commented Mar 27, 2025

Can you add the debug logs while reproducing the issue? Run Kanata having the --debug flag added.

@svban
Copy link
Author

svban commented Mar 27, 2025

14:45:55.5161 [INFO] kanata v1.8.0 starting
14:45:55.5165 [INFO] process unmapped keys: true
14:45:55.5166 [INFO] NOTE: kanata was compiled to never allow cmd
14:45:55.5166 [DEBUG] (1) kanata_parser::cfg::alloc: freeing allocations of length 0
14:45:55.5172 [INFO] config file is valid
14:45:55.5172 [DEBUG] (1) kanata_state_machine::kanata::output_logic::zippychord: zchd reset state
14:45:55.5172 [DEBUG] (1) kanata_state_machine::kanata::output_logic::zippychord: zchd soft reset state
14:45:55.5172 [DEBUG] (1) kanata_state_machine::kanata::output_logic::zippychord: zchd clear historical data
14:45:55.5172 [INFO] Sleeping for 2s. Please release all keys and don't press additional ones. Run kanata with --help to see how understand more and how to disable this sleep.
14:45:57.5223 [INFO] entering the processing loop
14:45:57.5224 [INFO] entering the event loop
14:45:57.5225 [INFO] Init: catching only releases and sending immediately
connected
driver_activated 1
driver_connected 0
driver_version_mismatched 0
14:45:58.1552 [INFO] Starting kanata proper
14:45:58.1553 [INFO] You may forcefully exit kanata by pressing lctl+spc+esc at any time. These keys refer to defsrc input, meaning BEFORE kanata remaps keys.
driver_connected 1
14:46:01.1151 [DEBUG] (1) kanata_state_machine::kanata::macos: InputEvent { value: 53, page: 7, code: 4294967295 } is unrecognized!
14:46:01.1151 [DEBUG] (1) kanata_state_machine::oskbd::macos: Attempting to write InputEvent { value: 53, page: 7, code: 4294967295 } DKEvent { value: 53, page: 7, code: 4294967295 }
14:46:01.1151 [DEBUG] (1) kanata_state_machine::kanata::macos: InputEvent { value: 0, page: 7, code: 1 } is unrecognized!
14:46:01.1151 [DEBUG] (1) kanata_state_machine::oskbd::macos: Attempting to write InputEvent { value: 0, page: 7, code: 1 } DKEvent { value: 0, page: 7, code: 1 }
14:46:01.1152 [DEBUG] (1) kanata_state_machine::kanata::macos: sending KeyEvent { code: KEY_GRAVE (41), value: Press } to processing loop
14:46:01.1152 [DEBUG] (1) kanata_state_machine::kanata::macos: InputEvent { value: 53, page: 7, code: 4294967295 } is unrecognized!
14:46:01.1153 [DEBUG] (2) kanata_state_machine::kanata: process recv ev KeyEvent { code: KEY_GRAVE (41), value: Press }
14:46:01.1154 [DEBUG] (2) kanata_state_machine::kanata: key press Grave
14:46:01.1154 [DEBUG] (2) kanata_state_machine::oskbd::macos: Attempting to write InputEvent { value: 1, page: 7, code: 53 } DKEvent { value: 1, page: 7, code: 53 }
14:46:01.1154 [DEBUG] (1) kanata_state_machine::oskbd::macos: Attempting to write InputEvent { value: 53, page: 7, code: 4294967295 } DKEvent { value: 53, page: 7, code: 4294967295 }
§14:46:01.1613 [DEBUG] (1) kanata_state_machine::kanata::macos: InputEvent { value: 0, page: 7, code: 4294967295 } is unrecognized!
14:46:01.1613 [DEBUG] (1) kanata_state_machine::oskbd::macos: Attempting to write InputEvent { value: 0, page: 7, code: 4294967295 } DKEvent { value: 0, page: 7, code: 4294967295 }
14:46:01.1613 [DEBUG] (1) kanata_state_machine::kanata::macos: InputEvent { value: 0, page: 7, code: 1 } is unrecognized!
14:46:01.1613 [DEBUG] (1) kanata_state_machine::oskbd::macos: Attempting to write InputEvent { value: 0, page: 7, code: 1 } DKEvent { value: 0, page: 7, code: 1 }
14:46:01.1613 [DEBUG] (1) kanata_state_machine::kanata::macos: sending KeyEvent { code: KEY_GRAVE (41), value: Release } to processing loop
14:46:01.1613 [DEBUG] (1) kanata_state_machine::kanata::macos: InputEvent { value: 0, page: 7, code: 4294967295 } is unrecognized!
14:46:01.1613 [DEBUG] (1) kanata_state_machine::oskbd::macos: Attempting to write InputEvent { value: 0, page: 7, code: 4294967295 } DKEvent { value: 0, page: 7, code: 4294967295 }
14:46:01.1613 [DEBUG] (2) kanata_state_machine::kanata: process recv ev KeyEvent { code: KEY_GRAVE (41), value: Release }
14:46:01.1614 [DEBUG] (2) kanata_state_machine::kanata: key release Grave
14:46:01.1614 [DEBUG] (2) kanata_state_machine::oskbd::macos: Attempting to write InputEvent { value: 0, page: 7, code: 53 } DKEvent { value: 0, page: 7, code: 53 }

@jtroo
Copy link
Owner

jtroo commented Mar 30, 2025

This only reproduces with kanata active right?

The logs look fine; but perhaps the output translation is wrong somehow...

 14:46:01.1152 [DEBUG] (1) kanata_state_machine::kanata::macos: sending KeyEvent { code: KEY_GRAVE (41), value: Press } to processing loop
 14:46:01.1154 [DEBUG] (2) kanata_state_machine::kanata: key press Grave
 14:46:01.1613 [DEBUG] (1) kanata_state_machine::kanata::macos: sending KeyEvent { code: KEY_GRAVE (41), value: Release } to processing loop
 14:46:01.1614 [DEBUG] (2) kanata_state_machine::kanata: key release Grave

@svban
Copy link
Author

svban commented Mar 30, 2025

Switching to a ANSI keyboard layout seems to have fixed the issue.

@svban svban closed this as completed Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macos Issue pertains to macos; jtroo has no macOS devices and does not maintain the support for this OS.
Projects
None yet
Development

No branches or pull requests

2 participants