I would like to toggle input method in emacs with OS key binding, i.e.
ctrl-shift, so it behaves like a normal desktop application. In other words I want to rebind
C-\ to just
C-S without any extra keys.
My keypoints are:
- I am on Linux
- I want all key bindings to work regardless of current language, including
- Switching languages should be done on key release (
C-S-%should not switch language)
I tried to write XKB-interceptor on C, which is listens XkbActionMessages
and sends it back to emacs. It works, but due to XKB Bug 865 it switches
languages on key press, not release. So it messes with
C-S-x key bindings.
There is a patch to workaround this bug, but it not covers
message. Extending that patch is too much for me.
Maybe there is easier way to accomplish my goal?