зеркало из https://github.com/mozilla/gecko-dev.git
r=jfrancis. small change to stop the editor from scrolling window when it DOESNT handle a key event
This commit is contained in:
Родитель
5495e7d940
Коммит
880a4f2081
|
@ -223,8 +223,8 @@ nsTextEditorKeyListener::KeyPress(nsIDOMEvent* aKeyEvent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
htmlEditor->EditorKeyPress(keyEvent);
|
if (NS_SUCCEEDED(htmlEditor->EditorKeyPress(keyEvent)))
|
||||||
ScrollSelectionIntoView();
|
ScrollSelectionIntoView();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ScrollSelectionIntoView();
|
ScrollSelectionIntoView();
|
||||||
|
|
|
@ -223,8 +223,8 @@ nsTextEditorKeyListener::KeyPress(nsIDOMEvent* aKeyEvent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
htmlEditor->EditorKeyPress(keyEvent);
|
if (NS_SUCCEEDED(htmlEditor->EditorKeyPress(keyEvent)))
|
||||||
ScrollSelectionIntoView();
|
ScrollSelectionIntoView();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ScrollSelectionIntoView();
|
ScrollSelectionIntoView();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче