diff options
author | mazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-28 07:37:37 +0000 |
---|---|---|
committer | mazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-28 07:37:37 +0000 |
commit | d99231b15054269fba1907dc8ce68208e6ad9751 (patch) | |
tree | 7072a91643b7e8447ebc7a325c40cb4a08a7490b | |
parent | bbd90756e9bb2fff3db1ab8b3640b9f2fa8c9335 (diff) | |
download | chromium_src-d99231b15054269fba1907dc8ce68208e6ad9751.zip chromium_src-d99231b15054269fba1907dc8ce68208e6ad9751.tar.gz chromium_src-d99231b15054269fba1907dc8ce68208e6ad9751.tar.bz2 |
Change gen_keyboard_overlay_data.js to generate the power key as a highlithed key in the base state.
BUG=none
TEST=Ran gen_keyboard_overlay_data.js and checked the generated data.
Review URL: http://codereview.chromium.org/6724030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79527 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-x | tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py b/tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py index b188f02..1fbde76 100755 --- a/tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py +++ b/tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# Copyright (c) 2010 The Chromium Authors. All rights reserved. +# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. @@ -121,7 +121,9 @@ def ToKeys(hotkey): continue modifiers.sort() keycode = value.lower().rstrip() - if not modifiers and keycode not in ['backspace']: + # The keys which are highlighted even without modifier keys. + base_keys = ['backspace', 'power'] + if not modifiers and keycode not in base_keys: return None return ' '.join([keycode] + modifiers) |