I'm writing a program that has text events and everything was
going fine until I tried to get char codes for the backspace and
delete keys, they don't seem to fire an event...so i checked for
their key codes, and still nothing. The char codes I have for the
backspace and delete keys are 8 and 127 respectively. Does anyone
have any ideas as to why this may be happening? They are inside of
a switch statement, and it catches every other case just fine, both
before and after I check for the backspace and delete keys.
I'm not really sure why your example is not working since we
are missing a good amount of the code that goes along with it
however whenever I need to check for either of those keys I
normally do it the following way as attached.