summaryrefslogtreecommitdiffstats
path: root/ash/accelerators/accelerator_dispatcher.cc
diff options
context:
space:
mode:
authorsergeygs@chromium.org <sergeygs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-06 04:22:58 +0000
committersergeygs@chromium.org <sergeygs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-06 04:22:58 +0000
commitf8bebfb177f7c99e858c56208db69e8f48ed63ad (patch)
tree457e590c9d4693b16149538af8f6eecc3cdea85e /ash/accelerators/accelerator_dispatcher.cc
parent358386f8070641cd39a896f72388c3b9b1b56e2c (diff)
downloadchromium_src-f8bebfb177f7c99e858c56208db69e8f48ed63ad.zip
chromium_src-f8bebfb177f7c99e858c56208db69e8f48ed63ad.tar.gz
chromium_src-f8bebfb177f7c99e858c56208db69e8f48ed63ad.tar.bz2
Small fixes around the code
1) Missing member initialization in constructor. 2) More explicit evaluation precedence in an expression. 3) Typos in comments. BUG= Review URL: https://chromiumcodereview.appspot.com/12316136 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186355 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/accelerators/accelerator_dispatcher.cc')
-rw-r--r--ash/accelerators/accelerator_dispatcher.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ash/accelerators/accelerator_dispatcher.cc b/ash/accelerators/accelerator_dispatcher.cc
index f8456d5..3dd60f8 100644
--- a/ash/accelerators/accelerator_dispatcher.cc
+++ b/ash/accelerators/accelerator_dispatcher.cc
@@ -48,7 +48,7 @@ bool IsPossibleAcceleratorNotForMenu(const ui::KeyEvent& key_event) {
// repost the event. That allows for the shortcut execution after
// the context menu has exited.
if (key_event.type() == ui::ET_KEY_PRESSED &&
- key_event.flags() & (ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN)) {
+ (key_event.flags() & (ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN))) {
const ui::KeyboardCode key_code = key_event.key_code();
if ((key_code >= ui::VKEY_A && key_code <= ui::VKEY_Z) ||
(key_code >= ui::VKEY_0 && key_code <= ui::VKEY_9) ||