Open Bug 237649 Opened 22 years ago Updated 5 years ago

On typing Esc, deselect the selection in editor

Categories

(Core :: DOM: Editor, enhancement, P5)

x86
Windows 2000
enhancement

Tracking

()

People

(Reporter: mcow, Unassigned)

References

(Blocks 1 open bug)

Details

Right now, it seems that typing the Esc key does nothing in the editor. I would like to see that clear (deselect) any current selection in the composition. I'm primarily interested in seeing this is in mail composition, but for the times that use Composer, it would be nice to have that there as well. I have this defined in my text editor; I've noticed several times recently that I've hit Esc assuming the selection would clear, and of course it does not. The URL bar in the browser will restore the current URL if Esc is typed after typing some other text in there, which is good -- but a second Esc there could clear the selection, as well. (This is how Opera handles Esc in the URL bar.)
Blocks: 323166
QA Contact: bugzilla → editor
Assignee: mozeditor → nobody
I don't think we should add this non-standard behavior. Esc is for getting out of weird modes. Using it for anything else (especially deleting things) is likely to surprise and confuse users.
Bryan for comments re: thunderbird behavior. see also bug 305272, bug 263861. (<esc> in IE still does clear an input box)
I might have misunderstood comment 0 -- on second reading, I think Mike is asking for the selection to be deselected, not deleted.
Yes, that's correct. I didn't realize your #3 meant you were thinking about "delete selected," which is definitely not what I want.
Summary: On typing Esc, clear selection in editor → On typing Esc, deselect the selection in editor
For text input boxes this is often the desired behavior, but I'm not aware of text editors/areas that do this. If this is non-standard or custom behavior then I'm not convinced we should put this in the mainline. However if it's difficult to create an extension that allows you to have this behavior that could be a bug.

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority and severity.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.