Closed Bug 158672 Opened 22 years ago Closed 22 years ago

editor doesn't consume (preventdefault) on characters typed in

Categories

(Core :: DOM: Editor, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.2alpha

People

(Reporter: Brade, Assigned: Brade)

Details

Attachments

(2 files)

While investigating a problem with Chimera, I found that the editor code
(nsPlaintextEditor.cpp) doesn't preventDefault for regular characters/letters
being typed.  I think this is a bug (right now, we only seem to prevent default
for delete/backspace, tab and return/enter).
This patch needs to be tested against many things to be sure there are no
regressions; any suggestions for regression testing?
-->brade
Assignee: kin → brade
Akkana--can you review this?
Status: NEW → ASSIGNED
Comment on attachment 92225 [details] [diff] [review]
patch to be tested

r=akkana
Attachment #92225 - Flags: review+
Comment on attachment 92225 [details] [diff] [review]
patch to be tested

sr=sfraser, but be sure to test this thoroughly, including IME etc.
Attachment #92225 - Flags: superreview+
I tested the patch on Windows2K using the testcase attached to bug 26882 and
it prevents spacebar from causing the pagedown behavior.
fix checked into 1.2 trunk
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.2alpha
fix checked into the 1.0 branch
reopening bug since this patch didn't address html editors
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment on attachment 99557 [details] [diff] [review]
patch for html editors

sr=sfraser
Attachment #99557 - Flags: superreview+
Comment on attachment 99557 [details] [diff] [review]
patch for html editors

brade says that the other events are PreventDefault'd in
nsEditorEventListener.cpp

i wouldn't mind a comment to that effect, but r=timeless either way
Attachment #99557 - Flags: review+
fix checked in
Status: REOPENED → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: