From d02f0306a5f3a430aeec9bb95cd5332c5ad5bc0d Mon Sep 17 00:00:00 2001 From: "brade%netscape.com" Date: Tue, 17 Sep 2002 21:27:30 +0000 Subject: [PATCH] PreventDefault in html editors for normal typing (letters/numbers/etc) (bug 158672, r=timeless, sr=smfr) git-svn-id: svn://10.0.0.236/trunk@129825 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/libeditor/html/nsHTMLEditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mozilla/editor/libeditor/html/nsHTMLEditor.cpp b/mozilla/editor/libeditor/html/nsHTMLEditor.cpp index bd9bd206d7b..697488f5904 100644 --- a/mozilla/editor/libeditor/html/nsHTMLEditor.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLEditor.cpp @@ -1244,6 +1244,7 @@ NS_IMETHODIMP nsHTMLEditor::HandleKeyPress(nsIDOMKeyEvent* aKeyEvent) // Either way, treat as normal character. if (character && !altKey && !ctrlKey && !isShift && !metaKey) { + aKeyEvent->PreventDefault(); nsAutoString key(character); return TypedText(key, eTypedText); }