mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Windows: Improve menu responsiveness (issue #194).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@950 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -487,11 +487,15 @@ void BrowserWebViewDelegate::showContextMenu(
|
||||
if (!menu)
|
||||
return;
|
||||
|
||||
MessageLoop::current()->set_os_modal_loop(true);
|
||||
|
||||
// Show the context menu
|
||||
int selected_id = TrackPopupMenu(menu,
|
||||
TPM_LEFTALIGN | TPM_RIGHTBUTTON | TPM_RETURNCMD | TPM_RECURSE,
|
||||
screenX, screenY, 0, browser_->UIT_GetMainWndHandle(), NULL);
|
||||
|
||||
MessageLoop::current()->set_os_modal_loop(false);
|
||||
|
||||
if (selected_id != 0) {
|
||||
// An action was chosen
|
||||
cef_menu_id_t menuId = static_cast<cef_menu_id_t>(selected_id);
|
||||
|
Reference in New Issue
Block a user