Closed magals closed 1 year ago
Hi! Thanks for asking! KeyChar
and RawKeyChar
are not available in the KeyPressed
event. You need to subscribe to the KeyTyped
event instead - then you'll be able to use KeyChar
. Note that not all key presses lead to KeyTyped
events. For example, if you press Ctrl
it will not lead to a KeyTyped
event.
On all keys the character type '?' is always output. RawEvent.Keyboard.RawKeyChar = 65535