• Welcome to PlanetSquires Forums.
 

Question about KeyChar and KeyCode

Started by Bumblebee, November 14, 2021, 12:37:01 PM

Previous topic - Next topic

Bumblebee

Pressing the DEL key returns code 46. This doesn't match the ASCII chart, which is 127.
Other keys return codes that are the same as ASCII.

Where can I find a list that documents KeyChar and KeyCode ?


Bumblebee

Thank-you!

So KeyCode is VK_DELETE = 46 and KeyChar is ASCII 46 which is the decimal point or period.

Until recently, I believed the KeyPress function was returning the DEL key, but this was actually the decimal point with Numlock on.