mac: views: Always initialize CommandDispatcher (see #3188)

ChromeCommandDispatcherDelegate forwards accelerator events to
the FocusManager through NativeWidgetMacNSWindowHost::
HandleAccelerator. Always initialize it so that accelerators also
work in a CefWindow without a BrowserView.
This commit is contained in:
Nik Pavlov
2024-10-15 17:58:23 +00:00
committed by Marshall Greenblatt
parent 5e348cb1fc
commit 1fd6000c70
2 changed files with 10 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ class CefNativeWidgetMac : public views::NativeWidgetMac {
bool IsCefWindowInitialized() const;
raw_ptr<BrowserView, AcrossTasksDanglingUntriaged> browser_view_ = nullptr;
bool initialized_ = false;
};
#endif // CEF_LIBCEF_BROWSER_VIEWS_NATIVE_WIDGET_MAC_H_