• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

What is the escape sequence for delete key?

screw3d

Diamond Member
I tried googling for it but couldn't 😕 find anything useful. This is for Java if it makes any difference..

TIA.
 
If you mean backspace it's ascii code 8.
On a mac it's ascii code 127, and on PCs it sends ascii 0 followed by some other char (I forget what, shouldn't be too hard to make a test app...), but that has nothing to do with how you would read the key being pressed in a Windows GUI app. (VK_DELETE constant being passed in event message).

No telling what standard Java would use for this. I wouldn't be surprised if it varies depending on what host the JVM is running on.
 
Originally posted by: glugglug
If you mean backspace it's ascii code 8.
On a mac it's ascii code 127, and on PCs it sends ascii 0 followed by some other char (I forget what, shouldn't be too hard to make a test app...), but that has nothing to do with how you would read the key being pressed in a Windows GUI app. (VK_DELETE constant being passed in event message).

No telling what standard Java would use for this. I wouldn't be surprised if it varies depending on what host the JVM is running on.

Wow.. I think you are going into too much detail here 🙂

All I want is.. something like "\n" for end-of-line, "\\" for backslash, "\b" for backspace, and I'm looking for an equivalent for delete key, not backspace. 🙂
 
It's been 15 years since this question was asked and this thread created, and if he hasn't figured it out during that long period, he might want to stop messing with Java. 😉
hey u r right.....nice to hear u.....but it can help to one who is searching for the same
 
Back
Top