I wrote a program for a customer service agent who uses windows 10. A hotkey is bound using the keyboard module, and it works like a charm, UNTIL the user presses CapsLock to swap to Microsoft IME Japanese.
Once that swap is made, the hotkey that my program has bound does not function anymore, and the program must be restarted.
I checked the key output in each keyboard mode, and they both output the same char, ' \ '.
Could someone speculate as to what the problem could be, and perhaps even a potential resolution?
`import keyboard keyboard.add_hotkey('\', callFunction)`