Closed
Bug 332811
Opened 20 years ago
Closed 19 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)
|
1.31 KB,
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•20 years ago
|
||
This is the patch that would change that behavior.
| Assignee | ||
Updated•19 years ago
|
Attachment #217281 -
Flags: review?(aaronleventhal)
Updated•19 years ago
|
Attachment #217281 -
Flags: review?(aaronleventhal) → review?(mats.palmgren)
Comment 2•19 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•19 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•19 years ago
|
||
Comment on attachment 237320 [details] [diff] [review]
patch
Looks good!
Attachment #237320 -
Flags: superreview?(bzbarsky) → superreview+
| Assignee | ||
Comment 5•19 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•19 years ago
|
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 6•19 years ago
|
||
It's weird that backspace is handled by a key event but delete is a command...
Updated•7 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
•