diff options
Diffstat (limited to 'editor/libeditor/EditorEventListener.cpp')
-rw-r--r-- | editor/libeditor/EditorEventListener.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/libeditor/EditorEventListener.cpp b/editor/libeditor/EditorEventListener.cpp index f90458d3e..69833ce84 100644 --- a/editor/libeditor/EditorEventListener.cpp +++ b/editor/libeditor/EditorEventListener.cpp @@ -791,7 +791,11 @@ EditorEventListener::HandleText(nsIDOMEvent* aTextEvent) return NS_OK; } - return mEditorBase->UpdateIMEComposition(aTextEvent); + // AsCompositionEvent() should always return non-nullptr. Anyway, it'll be + // checked in TextEditor::UpdateIMEComposition(). + WidgetCompositionEvent* compositionChangeEvent = + aTextEvent->WidgetEventPtr()->AsCompositionEvent(); + return mEditorBase->UpdateIMEComposition(compositionChangeEvent); } /** |