Hi,
isc.version == "v12.0p_2018-05-23/LGPL Development Only" on Chrome 66.0.3359.181
According to docs for EventHandler.getKeyEventCharacter returns: type: String - Character the user entered. May be null for non-character keys.
For pressing SHIFT button EventHandler.getKeyEventCharacterValue() returns undefined which when fed through String.fromCharCode(undefined) gives 1 letter string with character with ASCII code 0 instead of NULL.
In my opinion getKeyEventCharacter should detected undefined parameter and return NULL in that case.
Best regards,
Janusz
isc.version == "v12.0p_2018-05-23/LGPL Development Only" on Chrome 66.0.3359.181
According to docs for EventHandler.getKeyEventCharacter returns: type: String - Character the user entered. May be null for non-character keys.
For pressing SHIFT button EventHandler.getKeyEventCharacterValue() returns undefined which when fed through String.fromCharCode(undefined) gives 1 letter string with character with ASCII code 0 instead of NULL.
In my opinion getKeyEventCharacter should detected undefined parameter and return NULL in that case.
Best regards,
Janusz
Comment