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: Keys from deflocalkeys are not recognized in defsrc #1446

Open
2 tasks done
jangraefen opened this issue Dec 26, 2024 · 2 comments
Open
2 tasks done

Bug: Keys from deflocalkeys are not recognized in defsrc #1446

jangraefen opened this issue Dec 26, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@jangraefen
Copy link

Requirements

Describe the bug

I am trying to create a mapping for a QWERTZ German keyboard, using deflocalkeys-win and then defsrc to define my base layout. However kanata complains about unknown keys in the defsrc call. I took the example from the documentation here: https://github.com/jtroo/kanata/blob/main/docs/locales.adoc#iso-german-qwertz-windows-non-interception, replacing defcustomkeys with deflocalkeys-win.

This is the relevant error message:
image

I am sorry if I did something wrong or missed another issue related to this.

Relevant kanata config

(deflocalkeys-win
  ü    186
  +    187
  #    191
  ö    192
  ß    219
  ^    220
  ´    221
  ä    222
  <    226
)

(defsrc
  ^         1    2    3    4    5    6    7    8    9    0    ß    ´    bspc
  tab       q    w    e    r    t    z    u    i    o    p    ü    +
  caps      a    s    d    f    g    h    j    k    l    ö    ä    #    ret
  lsft <    y    x    c    v    b    n    m    ,    .    -    rsft
  lctl lmet lalt           spc            ralt rmet rctl
)

To Reproduce

  1. Create the config as above
  2. Start kanata

Expected behavior

I expected for the configuration found in other issues and the documentation to be parsable.

Kanata version

kanata 1.8.0-prerelease-1

Debug logs

No response

Operating system

Windows 11

Additional context

No response

@jangraefen jangraefen added the bug Something isn't working label Dec 26, 2024
@gerhard-h
Copy link
Contributor

I asume you use the winiov2 version where the numbers are different.
Or it's because the definition for - is missing.
The documentation should be updated like this

(deflocalkeys-wintercept
  -    191
  ü    219
  +    221
  #    220
  ö    186
  ß    189
  ^    192
  ´    187
  ä    222
  ;;<    226 ;; "102d" | "lsgt" | "nubs" | "nonusbslash" | "﹨" | "<"  is already defined by kanata itself
  y    90
  z    89
)

(deflocalkeys-win ;; see https://www.toptal.com/developers/keycode
  -    189
  ü    186
  +    187
  #    191
  ö    192
  ß    219
  ^    220
  ´    221
  ä    222
  y    89    ;; ( y and z are flipped compared to wintercept)
  z    90
)
(deflocalkeys-winiov2 ;; same numbers as wintercept?!
  -    191
  ü    219
  +    221
  #    220 
  ö    186
  ß    189
  ^    192
  ´    187
  ä    222
  y    90 
  z    89
)

@jangraefen
Copy link
Author

Thank you for your response @gerhard-h, this was it. Apparently I have configured the wrong numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants