r=jfrancis. small change to stop the editor from scrolling window when it DOESNT handle a key event

This commit is contained in:
mjudge%netscape.com 2000-03-22 01:30:16 +00:00
Родитель 5495e7d940
Коммит 880a4f2081
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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();