[Script] Make Keyboard Shortcuts work with Japanese Input

While doing reviews I tried writing the answers with a Japanese IME, instead of the normal input method of simply typing it.

This works, but when it comes to the keyboard shortcuts, like pressing “a” to show alternate grammar, or “f” to show the grammar information, it doesn’t work.

So I wrote a small script, that will accept “あ”, “f” and “p” after an answer was input and connects them to their respective keyboard shortcuts.

This works on my Linux IME (fcitx), not sure if it works for other systems, as well.

bunpro

2 Likes