06-14-2021, 08:51 AM
Hi Alexandre,
I can cope with the fact that KeyPress is only triggered by printable characters.
But when I check EventParams.Values['which'] in OnAsyncKeyDown, I get a different value then the key pressed.
For example, in OnAsyncKeyDown (and OnAsyncKeyUp), when I press -, the values I get are:
which: 189
char: ½
ansichar: ½
But when I check the same in OnAsyncKeyPress, I get the values:
which: 45
char: -
ansichar: -
I can cope with the fact that KeyPress is only triggered by printable characters.
But when I check EventParams.Values['which'] in OnAsyncKeyDown, I get a different value then the key pressed.
For example, in OnAsyncKeyDown (and OnAsyncKeyUp), when I press -, the values I get are:
which: 189
char: ½
ansichar: ½
But when I check the same in OnAsyncKeyPress, I get the values:
which: 45
char: -
ansichar: -

