Is it possible to detect whether I’m on my Czech (QWERTZ) or English-US (QWERTY) keyboard in the keymap and change two keybindings accordingly? I want the Undo and Redo keys to be on the same physical position matter what layout I’m currently on. So for QWERTZ I want Undo to be Ctrl + Z while on QWERTY I want it to be Ctrl + Y
I wondered if it was possible to add a new class to the
atom-workspace element that identifies the active keyboard, so I checked my own dev tools to see if any package had added a class to it, and lo and behold,
file-icons does exactly that. You could write a package to detect your keyboard and use that technique to record its status on Atom’s interface.