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

Unified Diff: ui/views/controls/tabbed_pane/tabbed_pane.cc

Issue 10446010: wip: Add ui::EventType parameter. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wip - views_unittests Created 8 years, 7 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/controls/menu/menu_controller.cc ('k') | ui/views/focus/focus_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/tabbed_pane/tabbed_pane.cc
diff --git a/ui/views/controls/tabbed_pane/tabbed_pane.cc b/ui/views/controls/tabbed_pane/tabbed_pane.cc
index b5dc08d965690596c543fe5a93e1d6f319309d87..af5af1593a4cd03e5b5620287f1edf25cd8e09cc 100644
--- a/ui/views/controls/tabbed_pane/tabbed_pane.cc
+++ b/ui/views/controls/tabbed_pane/tabbed_pane.cc
@@ -72,9 +72,12 @@ gfx::Size TabbedPane::GetPreferredSize() {
void TabbedPane::LoadAccelerators() {
// Ctrl+Shift+Tab
AddAccelerator(ui::Accelerator(ui::VKEY_TAB,
- ui::EF_CONTROL_DOWN | ui::EF_SHIFT_DOWN));
+ ui::EF_CONTROL_DOWN | ui::EF_SHIFT_DOWN,
+ ui::ET_KEY_PRESSED));
// Ctrl+Tab
- AddAccelerator(ui::Accelerator(ui::VKEY_TAB, ui::EF_CONTROL_DOWN));
+ AddAccelerator(ui::Accelerator(ui::VKEY_TAB,
+ ui::EF_CONTROL_DOWN,
+ ui::ET_KEY_PRESSED));
}
void TabbedPane::Layout() {
« no previous file with comments | « ui/views/controls/menu/menu_controller.cc ('k') | ui/views/focus/focus_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698