Closed
Bug 332811
Opened 19 years ago
Closed 18 years ago
Backspace in readonly input triggers history.back() (part 2)
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: martijn.martijn, Assigned: martijn.martijn)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
martijn.martijn
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Spin-off from bug 332345. Currently, you can see the caret when a readonly text input has focus. This can be confusing for the user, thinking he can erase any existing text, by pressing the backspace key. He would then be surprised to see he is going back in history instead. So maybe just disable the backspace key for readonly inputs now?
Assignee | ||
Comment 1•19 years ago
|
||
This is the patch that would change that behavior.
Assignee | ||
Updated•18 years ago
|
Attachment #217281 -
Flags: review?(aaronleventhal)
Updated•18 years ago
|
Attachment #217281 -
Flags: review?(aaronleventhal) → review?(mats.palmgren)
Comment 2•18 years ago
|
||
Comment on attachment 217281 [details] [diff] [review] patch Seems reasonable. Please put the '{' on a separate line like the surrounding code. r=mats with that.
Attachment #217281 -
Flags: review?(mats.palmgren) → review+
Assignee | ||
Comment 3•18 years ago
|
||
> (From update of attachment 217281 [details] [diff] [review] [edit])
> Seems reasonable.
> Please put the '{' on a separate line like the surrounding code.
> r=mats with that.
Ok, done that.
Attachment #217281 -
Attachment is obsolete: true
Attachment #237320 -
Flags: superreview?(bzbarsky)
Attachment #237320 -
Flags: review+
![]() |
||
Comment 4•18 years ago
|
||
Comment on attachment 237320 [details] [diff] [review] patch Looks good!
Attachment #237320 -
Flags: superreview?(bzbarsky) → superreview+
Assignee | ||
Comment 5•18 years ago
|
||
Checking in nsEditorEventListeners.cpp; /cvsroot/mozilla/editor/libeditor/text/nsEditorEventListeners.cpp,v <-- nsEdit orEventListeners.cpp new revision: 1.241; previous revision: 1.240 done Checked into trunk.
Assignee: events → martijn.martijn
Assignee | ||
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 6•18 years ago
|
||
It's weird that backspace is handled by a key event but delete is a command...
Updated•5 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•