call preventdefault for keypresses we insert (r=akkana, sr=sfraser) bug 158672 (and others)
git-svn-id: svn://10.0.0.236/trunk@126673 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
343b475e52
commit
b812450ad0
@ -527,6 +527,7 @@ NS_IMETHODIMP nsPlaintextEditor::HandleKeyPress(nsIDOMKeyEvent* aKeyEvent)
|
||||
|
||||
if (character && !altKey && !ctrlKey && !isShift && !metaKey)
|
||||
{
|
||||
aKeyEvent->PreventDefault();
|
||||
nsAutoString key(character);
|
||||
return TypedText(key, eTypedText);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user