triggeredAutocomplete icon indicating copy to clipboard operation
triggeredAutocomplete copied to clipboard

Pressing ESC deletes all the text

Open therealsamsquanch opened this issue 13 years ago • 3 comments

CASE A

Write some stuff; Press ESC;

All the text will disappear.

CASE B

Write some stuff; Mention someone (Person-A); Write more stuff after the mentioned name; Press ESC;

The text entered after the mentioned name will disappear.

Example (with ! as the mention marker):

I love !PHP but Cobol is way more cool.

Press ESC and result will be:

I love !PHP

therealsamsquanch avatar Jul 16 '12 03:07 therealsamsquanch

This is part of the default autocomplete. The keypress would need to be overridden to stop this behavior. I can look at it next time I work on this but I'm currently a little busy to get to it.

Hawkers avatar Jul 16 '12 18:07 Hawkers

I just submitted a pull request which fixes that. It also fixes the UP and DOWN arrow keys not working in the textrea.

See bd9b3e005aaaa52da9000bdb0e5384c20583d50a for more details.

mandor avatar Sep 09 '12 00:09 mandor

This fix doesn't work for Internet explorer. I've tested it in IE7-9 and the ESC key still deletes the text.

You can test it in this jsFiddle

tinyfly avatar Dec 03 '12 23:12 tinyfly