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

Issue 2763483002: Fix Caps Lock bug (Closed)

Created:
3 years, 9 months ago by weidongg
Modified:
3 years, 8 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix Caps Lock bug Move the handling of Caps Lock key event to accelerator controller and trigger toggling on key-release. Remove the handling code of Caps Lock for X11 from InputMethodChromeOS::DispatchKeyEvent, because it is now handled only in accelerator controller. This should also work for both x11+ozone environment and x11 environment on desktop. BUG=700705 Review-Url: https://codereview.chromium.org/2763483002 Cr-Commit-Position: refs/heads/master@{#464499} Committed: https://chromium.googlesource.com/chromium/src/+/863b0d4dbe21b493e2dfa59c6d52e02a1af73565

Patch Set 1 #

Patch Set 2 : q #

Total comments: 1

Patch Set 3 : On branch mychange Your branch is up-to-date with 'origin/master'. #

Patch Set 4 : Fix continous toggling of Caps Lock key. #

Patch Set 5 : Change unit test #

Patch Set 6 : Add unit test for Caps Lock in accelerator. #

Total comments: 6

Patch Set 7 : Applying the fix #

Total comments: 7

Patch Set 8 : Remove Caps Lock handling for X11 case #

Patch Set 9 : Failure due to file directory change, apply the fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -68 lines) Patch
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -2 lines 0 comments Download
M ash/accelerators/accelerator_controller_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -1 line 0 comments Download
M ash/accelerators/accelerator_table.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ash/accelerators/accelerator_table_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/events/event_rewriter_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +0 lines, -29 lines 0 comments Download
M ui/base/ime/input_method_chromeos.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -14 lines 0 comments Download
M ui/chromeos/events/event_rewriter_chromeos.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -18 lines 0 comments Download

Messages

Total messages: 71 (44 generated)
weidongg
3 years, 9 months ago (2017-03-20 22:37:49 UTC) #9
afakhry
I also kicked off a CQ-dryrun to see if any tests would catch any bugs. ...
3 years, 9 months ago (2017-03-21 17:09:22 UTC) #14
weidongg
I removed the handling part in RewriteModifierKeys and added that into accelerator controller. It works ...
3 years, 8 months ago (2017-03-29 03:43:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2763483002/60001
3 years, 8 months ago (2017-03-29 03:45:10 UTC) #21
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 8 months ago (2017-03-29 03:45:12 UTC) #23
afakhry
On 2017/03/29 05:02:18, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
3 years, 8 months ago (2017-03-29 16:26:36 UTC) #28
weidongg
oshima@chromium.org: Please review changes in Caps Lock key related files.
3 years, 8 months ago (2017-03-29 23:14:39 UTC) #32
weidongg
3 years, 8 months ago (2017-03-29 23:15:35 UTC) #33
weidongg
Just uploaded a new patch.
3 years, 8 months ago (2017-04-07 23:12:21 UTC) #36
afakhry
I triggered a CQ dry-run. I think the newly added test here: https://codereview.chromium.org/2802583002/ to catch ...
3 years, 8 months ago (2017-04-07 23:31:42 UTC) #40
weidongg
https://codereview.chromium.org/2763483002/diff/100001/ash/accelerators/accelerator_controller_unittest.cc File ash/accelerators/accelerator_controller_unittest.cc (right): https://codereview.chromium.org/2763483002/diff/100001/ash/accelerators/accelerator_controller_unittest.cc#newcode1027 ash/accelerators/accelerator_controller_unittest.cc:1027: EXPECT_FALSE(ProcessInController(press_caps_lock)); On 2017/04/07 23:31:42, afakhry wrote: > Can you ...
3 years, 8 months ago (2017-04-08 00:15:07 UTC) #41
weidongg
@oshima friendly ping.
3 years, 8 months ago (2017-04-11 02:41:59 UTC) #42
oshima
https://codereview.chromium.org/2763483002/diff/120001/ash/common/accelerators/accelerator_controller.cc File ash/common/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/2763483002/diff/120001/ash/common/accelerators/accelerator_controller.cc#newcode555 ash/common/accelerators/accelerator_controller.cc:555: return false; when ime is null? https://codereview.chromium.org/2763483002/diff/120001/ash/common/accelerators/accelerator_table_unittest.cc File ash/common/accelerators/accelerator_table_unittest.cc ...
3 years, 8 months ago (2017-04-11 19:04:47 UTC) #43
kpschoedel
https://codereview.chromium.org/2763483002/diff/120001/ui/chromeos/events/event_rewriter_chromeos.cc File ui/chromeos/events/event_rewriter_chromeos.cc (left): https://codereview.chromium.org/2763483002/diff/120001/ui/chromeos/events/event_rewriter_chromeos.cc#oldcode816 ui/chromeos/events/event_rewriter_chromeos.cc:816: #endif (original author) I believe this can be removed ...
3 years, 8 months ago (2017-04-11 21:56:00 UTC) #45
oshima
https://codereview.chromium.org/2763483002/diff/120001/ui/chromeos/events/event_rewriter_chromeos.cc File ui/chromeos/events/event_rewriter_chromeos.cc (left): https://codereview.chromium.org/2763483002/diff/120001/ui/chromeos/events/event_rewriter_chromeos.cc#oldcode816 ui/chromeos/events/event_rewriter_chromeos.cc:816: #endif On 2017/04/11 21:56:00, kpschoedel wrote: > (original author) ...
3 years, 8 months ago (2017-04-11 22:24:54 UTC) #46
weidongg
https://codereview.chromium.org/2763483002/diff/120001/ash/common/accelerators/accelerator_controller.cc File ash/common/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/2763483002/diff/120001/ash/common/accelerators/accelerator_controller.cc#newcode555 ash/common/accelerators/accelerator_controller.cc:555: return false; On 2017/04/11 19:04:47, oshima wrote: > when ...
3 years, 8 months ago (2017-04-11 22:55:44 UTC) #47
weidongg
shuchen@chromium.org: Please review changes in ui/base/ime/input_method_chromeos.cc
3 years, 8 months ago (2017-04-12 02:46:15 UTC) #50
Shu Chen
lgtm for ui/base/ime/...
3 years, 8 months ago (2017-04-12 02:52:37 UTC) #51
afakhry
lgtm. Please wait for Oshima's approval.
3 years, 8 months ago (2017-04-13 01:04:33 UTC) #52
oshima
On 2017/04/11 22:24:54, oshima wrote: > https://codereview.chromium.org/2763483002/diff/120001/ui/chromeos/events/event_rewriter_chromeos.cc > File ui/chromeos/events/event_rewriter_chromeos.cc (left): > > https://codereview.chromium.org/2763483002/diff/120001/ui/chromeos/events/event_rewriter_chromeos.cc#oldcode816 > ...
3 years, 8 months ago (2017-04-13 01:17:17 UTC) #53
weidongg
On 2017/04/13 01:17:17, oshima wrote: > On 2017/04/11 22:24:54, oshima wrote: > > > https://codereview.chromium.org/2763483002/diff/120001/ui/chromeos/events/event_rewriter_chromeos.cc ...
3 years, 8 months ago (2017-04-13 01:47:38 UTC) #54
weidongg
Updated the description.
3 years, 8 months ago (2017-04-13 02:19:40 UTC) #56
oshima
lgtm
3 years, 8 months ago (2017-04-13 14:18:33 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2763483002/140001
3 years, 8 months ago (2017-04-13 16:48:46 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/248662) android_cronet on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 8 months ago (2017-04-13 16:52:53 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2763483002/160001
3 years, 8 months ago (2017-04-13 19:06:44 UTC) #68
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 19:24:14 UTC) #71
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/863b0d4dbe21b493e2dfa59c6d52...

Powered by Google App Engine
This is Rietveld 408576698