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

Unified Diff: ui/views/focus/focus_manager.cc

Issue 10514003: Config UI for Extension Commands (part 1). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months 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
« no previous file with comments | « ui/views/focus/focus_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/focus/focus_manager.cc
===================================================================
--- ui/views/focus/focus_manager.cc (revision 140271)
+++ ui/views/focus/focus_manager.cc (working copy)
@@ -21,6 +21,8 @@
namespace views {
+bool FocusManager::shortcut_handling_suspended_ = false;
+
FocusManager::FocusManager(Widget* widget, FocusManagerDelegate* delegate)
: widget_(widget),
delegate_(delegate),
@@ -76,6 +78,9 @@
return false;
#endif
+ if (shortcut_handling_suspended())
+ return true;
+
int modifiers = ui::EF_NONE;
if (event.IsShiftDown())
modifiers |= ui::EF_SHIFT_DOWN;
« no previous file with comments | « ui/views/focus/focus_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698