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

Issue 11578044: Enable Search-key modifiers for extended key shortcuts. (Closed)

Created:
8 years ago by danakj
Modified:
8 years ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, ben+watch_chromium.org, mazda+watch_chromium.org, arv (Not doing code reviews), oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, nkostylev+watch_chromium.org, piman, backer, Daniel Erat
Visibility:
Public.

Description

Enable Search-key modifiers for extended key shortcuts. We use the Search-key as a modifier to disable existing shortcuts that do not use the Search key. So Alt+Backspace still generates a Delete, but Search+Alt+Backspace generates Alt+Backspace. And, Search+Backspace will also generate Delete. Search acts as a modifier for accessing all of the extended keys: Home, End, Delete, Page up, Page down, Insert. This removes the command line flag entirely, making everything work in a way that does not need a flag or a preference option. Tests: unit_tests:EventRewriterTest.TestRewriteExtendedKeys unit_tests:EventRewriterTest.TestRewriteFunctionKeys unit_tests:EventRewriterTest.TestRewriteExtendedKeysWithSearchRemapped BUG=162268 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173607

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Total comments: 3

Patch Set 7 : #

Total comments: 6

Patch Set 8 : rebase #

Total comments: 2

Patch Set 9 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -576 lines) Patch
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -21 lines 0 comments Download
M ash/accelerators/accelerator_controller_unittest.cc View 1 2 3 4 1 chunk +2 lines, -46 lines 0 comments Download
M ash/accelerators/accelerator_table.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ash/shell_delegate.h View 1 chunk +0 lines, -4 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/app/chromeos_strings.grdp View 1 2 3 4 5 6 7 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/keyboard_overlay.js View 1 2 3 4 5 6 2 chunks +47 lines, -69 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/ui/ash/event_rewriter.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/event_rewriter.cc View 1 2 3 4 5 9 chunks +149 lines, -100 lines 0 comments Download
M chrome/browser/ui/ash/event_rewriter_unittest.cc View 1 2 3 4 5 5 chunks +233 lines, -268 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc View 1 2 3 4 5 4 chunks +2 lines, -11 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
danakj
This moves the non-controvertial parts of the power user keyboard functionality out from behind the ...
8 years ago (2012-12-15 02:46:45 UTC) #1
Yusuke Sato
https://codereview.chromium.org/11578044/diff/6026/chrome/browser/ui/ash/event_rewriter.cc File chrome/browser/ui/ash/event_rewriter.cc (right): https://codereview.chromium.org/11578044/diff/6026/chrome/browser/ui/ash/event_rewriter.cc#newcode693 chrome/browser/ui/ash/event_rewriter.cc:693: if (keep_non_search_shortcuts && remapped_keycode == ui::VKEY_UNKNOWN) { Do we ...
8 years ago (2012-12-17 00:26:17 UTC) #2
Yusuke Sato
LGTM if the new flag is removed. On 2012/12/17 00:26:17, Yusuke Sato wrote: > https://codereview.chromium.org/11578044/diff/6026/chrome/browser/ui/ash/event_rewriter.cc ...
8 years ago (2012-12-17 01:01:34 UTC) #3
danakj
mazda@ and derat@ can you please take a look? thanks. https://codereview.chromium.org/11578044/diff/6026/chrome/browser/ui/ash/event_rewriter.cc File chrome/browser/ui/ash/event_rewriter.cc (right): https://codereview.chromium.org/11578044/diff/6026/chrome/browser/ui/ash/event_rewriter.cc#newcode693 ...
8 years ago (2012-12-17 02:05:14 UTC) #4
mazda
https://codereview.chromium.org/11578044/diff/9019/chrome/browser/resources/chromeos/keyboard_overlay.js File chrome/browser/resources/chromeos/keyboard_overlay.js (left): https://codereview.chromium.org/11578044/diff/9019/chrome/browser/resources/chromeos/keyboard_overlay.js#oldcode145 chrome/browser/resources/chromeos/keyboard_overlay.js:145: var searchModifierAddShortcuts = { Could you keep these shortcuts ...
8 years ago (2012-12-17 18:27:51 UTC) #5
danakj
https://codereview.chromium.org/11578044/diff/9019/chrome/browser/resources/chromeos/keyboard_overlay.js File chrome/browser/resources/chromeos/keyboard_overlay.js (left): https://codereview.chromium.org/11578044/diff/9019/chrome/browser/resources/chromeos/keyboard_overlay.js#oldcode145 chrome/browser/resources/chromeos/keyboard_overlay.js:145: var searchModifierAddShortcuts = { On 2012/12/17 18:27:51, mazda wrote: ...
8 years ago (2012-12-17 18:30:48 UTC) #6
danakj
PTAL https://codereview.chromium.org/11578044/diff/9019/chrome/browser/resources/chromeos/keyboard_overlay.js File chrome/browser/resources/chromeos/keyboard_overlay.js (left): https://codereview.chromium.org/11578044/diff/9019/chrome/browser/resources/chromeos/keyboard_overlay.js#oldcode145 chrome/browser/resources/chromeos/keyboard_overlay.js:145: var searchModifierAddShortcuts = { On 2012/12/17 18:27:51, mazda ...
8 years ago (2012-12-17 20:01:29 UTC) #7
mazda
Thanks! LGTM
8 years ago (2012-12-17 20:26:35 UTC) #8
Daniel Erat
lgtm https://codereview.chromium.org/11578044/diff/23001/chrome/browser/ui/ash/event_rewriter.cc File chrome/browser/ui/ash/event_rewriter.cc (right): https://codereview.chromium.org/11578044/diff/23001/chrome/browser/ui/ash/event_rewriter.cc#newcode660 chrome/browser/ui/ash/event_rewriter.cc:660: Mod1Mask | ControlMask | Mod4Mask, It doesn't need ...
8 years ago (2012-12-17 20:32:01 UTC) #9
danakj
Thanks! +sky for OWNERS, please. Removing the command line flag so mostly this is deleting ...
8 years ago (2012-12-17 20:33:47 UTC) #10
mazda
https://codereview.chromium.org/11578044/diff/23001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/11578044/diff/23001/ash/accelerators/accelerator_controller.cc#newcode545 ash/accelerators/accelerator_controller.cc:545: previous_key_code != ui::VKEY_LWIN) Does this work when Alt key ...
8 years ago (2012-12-17 21:18:39 UTC) #11
danakj
https://codereview.chromium.org/11578044/diff/23001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/11578044/diff/23001/ash/accelerators/accelerator_controller.cc#newcode545 ash/accelerators/accelerator_controller.cc:545: previous_key_code != ui::VKEY_LWIN) On 2012/12/17 21:18:40, mazda wrote: > ...
8 years ago (2012-12-17 21:29:24 UTC) #12
danakj
https://codereview.chromium.org/11578044/diff/23001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/11578044/diff/23001/ash/accelerators/accelerator_controller.cc#newcode545 ash/accelerators/accelerator_controller.cc:545: previous_key_code != ui::VKEY_LWIN) On 2012/12/17 21:29:24, danakj wrote: > ...
8 years ago (2012-12-17 21:34:56 UTC) #13
mazda
https://codereview.chromium.org/11578044/diff/23001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/11578044/diff/23001/ash/accelerators/accelerator_controller.cc#newcode545 ash/accelerators/accelerator_controller.cc:545: previous_key_code != ui::VKEY_LWIN) On 2012/12/17 21:34:56, danakj wrote: > ...
8 years ago (2012-12-17 21:39:15 UTC) #14
sky
LGTM https://codereview.chromium.org/11578044/diff/22003/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/11578044/diff/22003/ash/accelerators/accelerator_controller.cc#newcode544 ash/accelerators/accelerator_controller.cc:544: if (previous_event_type == ui::ET_KEY_RELEASED || nit: combine ifs.
8 years ago (2012-12-17 22:28:59 UTC) #15
danakj
Thanks! https://codereview.chromium.org/11578044/diff/22003/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/11578044/diff/22003/ash/accelerators/accelerator_controller.cc#newcode544 ash/accelerators/accelerator_controller.cc:544: if (previous_event_type == ui::ET_KEY_RELEASED || On 2012/12/17 22:29:00, ...
8 years ago (2012-12-17 22:32:12 UTC) #16
commit-bot: I haz the power
8 years ago (2012-12-17 22:55:54 UTC) #17

Powered by Google App Engine
This is Rietveld 408576698