diff --git a/widget/src/mac/nsMacEventHandler.cpp b/widget/src/mac/nsMacEventHandler.cpp index cbd62e3172c5..f7f96542de15 100644 --- a/widget/src/mac/nsMacEventHandler.cpp +++ b/widget/src/mac/nsMacEventHandler.cpp @@ -119,6 +119,7 @@ void nsMacEventDispatchHandler::SetFocus(nsWindow *aFocusedWidget) // tell the old widget it is not focused if (mActiveWidget) { + mActiveWidget->ResetInputState(); mActiveWidget->RemoveDeleteObserver(this); DispatchGuiEvent(mActiveWidget, NS_LOSTFOCUS); }