PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Question about KeyChar and KeyCode  (Read 371 times)

Bumblebee

  • Junior Member
  • **
  • Posts: 93
Question about KeyChar and KeyCode
« on: November 14, 2021, 12:37:01 PM »

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 ?
Logged

Johan Klassen

  • Junior Member
  • **
  • Posts: 123
  • FF3 User
Re: Question about KeyChar and KeyCode
« Reply #1 on: November 14, 2021, 03:11:16 PM »

Logged

Bumblebee

  • Junior Member
  • **
  • Posts: 93
Re: Question about KeyChar and KeyCode
« Reply #2 on: November 14, 2021, 03:54:54 PM »

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.
Logged