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

binding Extend to Alt_R produces Error #27

Closed
logexp1 opened this issue Jan 28, 2020 · 4 comments
Closed

binding Extend to Alt_R produces Error #27

logexp1 opened this issue Jan 28, 2020 · 4 comments

Comments

@logexp1
Copy link

logexp1 commented Jan 28, 2020

If I use singletonKeys as follows
"singletonKeys": [ [ "Alt_R", "Extend" ] ],
It produces following error logs
Error: Key <MDSW> added to map for multiple modifiers Using Mod3, ignoring Mod5.

If I bind to CapsLock instead of Alt_R, it works fine.
I am generating XKB layout
I still want to bind Extend to Alt_R, is there anything else I can try?

Thanks

@DreymaR
Copy link

DreymaR commented Jan 28, 2020

Alt_R is tricky because it's used as AltGr. Often, the RAlt=AltGr behavior is included in a four-level layout. If you insist on using RAlt as your Extend (lvl5) modifier, you must ensure it isn't also used as AltGr (lvl3).

@logexp1
Copy link
Author

logexp1 commented Jan 30, 2020

I want to use RAlt, but how do I ensure it's not also used as AltGr? is it possible using klfc? I tried to bind Extend to Control_R instead, but it gives me same error as it was for Alt_R

@39aldo39
Copy link
Owner

Your definition should work, but I also noticed the same problem on Wayland. The definition just includes level5(ralt_switch) which does the mapping in a weird way. It does work for me on X11 though, but it still gives an error.

You can move the definition to the normal letters, so you add { "pos": "Alt_R", "letters": [ "Extend" ] } to it. This works fine for me on X11 without errors, but I haven't tried it on Wayland yet.

@logexp1
Copy link
Author

logexp1 commented Jan 31, 2020

Thank you, it works!

@logexp1 logexp1 closed this as completed Jan 31, 2020
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

3 participants