mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
views: Support top menu switching with mouse and arrow keys (issue #2102)
- cefclient: Add example ViewsMenuBar implementation and show top menu by default (specify `--hide-top-menu` to hide it).
This commit is contained in:
@ -50,6 +50,11 @@ void CefMenuButtonImpl::ShowMenu(CefRefPtr<CefMenuModel> menu_model,
|
||||
}
|
||||
}
|
||||
|
||||
void CefMenuButtonImpl::TriggerMenu() {
|
||||
CEF_REQUIRE_VALID_RETURN_VOID();
|
||||
root_view()->Activate(nullptr);
|
||||
}
|
||||
|
||||
CefMenuButtonImpl::CefMenuButtonImpl(CefRefPtr<CefMenuButtonDelegate> delegate)
|
||||
: ParentClass(delegate) {
|
||||
DCHECK(delegate);
|
||||
|
Reference in New Issue
Block a user