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

Peg reads Modtap keycodes as two separate keys #31

Open
ptaranat opened this issue Oct 19, 2022 · 0 comments
Open

Peg reads Modtap keycodes as two separate keys #31

ptaranat opened this issue Oct 19, 2022 · 0 comments

Comments

@ptaranat
Copy link

ptaranat commented Oct 19, 2022

When using Modtap module, Peg tries to read KC.MT(KC.ESC, KC.LCTL) as two separate keys KC.MT(KC.ESC and KC.LCTL), likely because of splitting based on , identifier.
This results in two keys showing up as error, and shifting the entire layout by one key.
A fix would be to check if there is a function denoted by parens, and to ignore all commas within that parens
Peg_ZCp6j80y03
Note how entire layout shifted one key to the right.
Peg_4VojfFP57f

Workaround:

  1. In the GUI, add the Custom Keycode where the Err is.
  2. Edit the layout in main.py and remove the KC.NO next to it.
  3. Restart Peg.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant