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

kitty doesn't adapt to key remapping using xkb #239

Closed
sergei-dyshel opened this issue Dec 19, 2017 · 3 comments
Closed

kitty doesn't adapt to key remapping using xkb #239

sergei-dyshel opened this issue Dec 19, 2017 · 3 comments

Comments

@sergei-dyshel
Copy link

How to reproduce:

  • Start kitty
  • setxkbmap -option caps:swapescape - swaps CapsLock and Escape (very popular remap among Vim users).
  • Now pressing Escape (physical key) both triggers Escape in kitty and toggles CapsLock (as it should).

If kitty started after running setxkbmap then remapped keys work as expected but kitty won't respect to subsequent invocations of setxkbmap.

I know that there is an ongoing work to improve keyboard handling in glfw fork, but currently this problem causes me to restart all my terminals each time I remap keys (which I am doing each time dock/undock my laptop). I wonder if there is simple to way to fix this issue without changing too much code.

@kovidgoyal
Copy link
Owner

Not that I know of. Patches are welcome.

@kovidgoyal
Copy link
Owner

kovidgoyal commented Mar 30, 2018

This is resolved in the xkb branch, see #171

@sergei-dyshel
Copy link
Author

Great work, I was waiting for this fix! 👍

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

2 participants