Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: ui/views/bubble/bubble_dialog_delegate.cc

Issue 2604793002: Allow Widget to pass accelerator handling to its parent.
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/bubble/bubble_dialog_delegate.cc
diff --git a/ui/views/bubble/bubble_dialog_delegate.cc b/ui/views/bubble/bubble_dialog_delegate.cc
index 5c9d89be7769c3c5103762059a3e145cb599d7d7..536c8f290aea85c7a07e68b13220cb390a6bc5f0 100644
--- a/ui/views/bubble/bubble_dialog_delegate.cc
+++ b/ui/views/bubble/bubble_dialog_delegate.cc
@@ -41,6 +41,7 @@ Widget* CreateBubbleWidget(BubbleDialogDelegateView* bubble) {
bubble_params.activatable = bubble->CanActivate()
? Widget::InitParams::ACTIVATABLE_YES
: Widget::InitParams::ACTIVATABLE_NO;
+ bubble_params.pass_accelerator_to_parent = true;
bubble->OnBeforeBubbleWidgetInit(&bubble_params, bubble_widget);
bubble_widget->Init(bubble_params);
if (bubble_params.parent)

Powered by Google App Engine
This is Rietveld 408576698