ScriptUI.environment.keyboardState.keyName is returning undefined in Windows
I have a script that checks the state of Esc key to abort it.
So I'm using ScriptUI.environment.keyboardState.keyName to check if the esc is pressed.
It works like a charm in MacOs.
But for some reason in Windows it is returning undefined, no metter which key I press.
Does any one have a hint what could be wrong?
* All the other properties from ScriptUI.environment.keyboardState (like shiftKey) works fine in Windows.
EDIT:
Finally found out the problem!
It is related to the keyboard layout.
If I open Indesign with US keyboard layout it works fine, if I use Japanese keyboard layout It dont works, even if I set the input to Roman alphabet.
EDIT2:
I found out the problem, but not the solution.
