Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert virtual key code to character code?

In the onkeydown() handler I am getting 219 as the keycode for '['; however, the actual character value of '[' is 91. Is there any way to map these two?

like image 272
Ashish Avatar asked Sep 25 '26 11:09

Ashish


1 Answers

If you are using Windows, you should look into the ToUnicodeEx function.

like image 137
Zach Johnson Avatar answered Sep 27 '26 01:09

Zach Johnson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!