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

Issue 727583002: Regression: Search+Key pops up app launcher (Closed)

Created:
6 years, 1 month ago by afakhry
Modified:
6 years, 1 month ago
Reviewers:
Jun Mukai, sky, dmazzoni
CC:
chromium-reviews, kalyank, sadrul, tfarina, tdresser+watch_chromium.org, Jun Mukai
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Regression: Search+Key pops up app launcher We decided to fix this issue even though it only happens when the following 'wrong' key sequence is pressed: - SearchKey [pressed] - Key [pressed] - SearchKey [released] - Key [released] Resulted wrong behavior: the AppLancher appears. The Cause: ---------- When the search key is used as a modifier, the following pressed key is rewritten and consumed. It doesn't get forwarded to AcceleratorController managed by the AcceleratorManager in the FocusManager. The AcceleratorController needs to know the previous Accelerator to determine the correct behavior. The 'Suggested' Fix: -------------------- Track the system-wide current and previous key accelerators and require that the ToggleAppList would only be triggered if LWIN [pressed] is immediately followed by LWIN [released]. BUG=410835 TEST=manual, ash_unittests Committed: https://crrev.com/5546373f24680054ad4e1eca425b5b1b7291dfe9 Cr-Commit-Position: refs/heads/master@{#305278}

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Total comments: 17

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Total comments: 14

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : The StickyKeysBrowserTest.SearchLeftOmnibox test that used to fail was broken, used to assume the c… #

Total comments: 6

Patch Set 11 : #

Patch Set 12 : Fixing the stale patch #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -161 lines) Patch
M ash/accelerators/accelerator_controller.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -6 lines 0 comments Download
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +16 lines, -23 lines 0 comments Download
M ash/accelerators/accelerator_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 28 chunks +145 lines, -106 lines 0 comments Download
M ash/accelerators/accelerator_filter_unittest.cc View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M athena/input/accelerator_manager_impl.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M athena/input/accelerator_manager_impl.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/accessibility/sticky_keys_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +22 lines, -9 lines 0 comments Download
M ui/base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
A ui/base/accelerators/accelerator_history.h View 1 2 3 4 5 6 7 8 1 chunk +47 lines, -0 lines 0 comments Download
A ui/base/accelerators/accelerator_history.cc View 1 2 3 4 5 6 7 8 1 chunk +30 lines, -0 lines 0 comments Download
M ui/base/ui_base.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/focus/focus_manager.cc View 1 2 3 4 2 chunks +13 lines, -11 lines 0 comments Download
M ui/wm/core/accelerator_filter.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -1 line 0 comments Download
M ui/wm/core/accelerator_filter.cc View 1 2 3 4 5 3 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 54 (12 generated)
afakhry
6 years, 1 month ago (2014-11-13 22:21:01 UTC) #2
afakhry
6 years, 1 month ago (2014-11-14 00:35:15 UTC) #3
Jun Mukai
https://codereview.chromium.org/727583002/diff/20001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (left): https://codereview.chromium.org/727583002/diff/20001/ash/accelerators/accelerator_controller.cc#oldcode473 ash/accelerators/accelerator_controller.cc:473: return false; Please keep early-exit code if you don't ...
6 years, 1 month ago (2014-11-14 02:09:48 UTC) #5
afakhry
https://codereview.chromium.org/727583002/diff/20001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (left): https://codereview.chromium.org/727583002/diff/20001/ash/accelerators/accelerator_controller.cc#oldcode474 ash/accelerators/accelerator_controller.cc:474: if (key_code == ui::VKEY_LWIN) On 2014/11/14 02:09:48, Jun Mukai ...
6 years, 1 month ago (2014-11-14 17:30:58 UTC) #6
afakhry
6 years, 1 month ago (2014-11-15 01:39:58 UTC) #7
Jun Mukai
https://codereview.chromium.org/727583002/diff/40001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/727583002/diff/40001/ash/accelerators/accelerator_controller.cc#newcode473 ash/accelerators/accelerator_controller.cc:473: accelerator.type() != ui::ET_KEY_RELEASED) This was weird in the previous ...
6 years, 1 month ago (2014-11-15 01:56:33 UTC) #8
afakhry
https://codereview.chromium.org/727583002/diff/40001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/727583002/diff/40001/ash/accelerators/accelerator_controller.cc#newcode473 ash/accelerators/accelerator_controller.cc:473: accelerator.type() != ui::ET_KEY_RELEASED) On 2014/11/15 01:56:33, Jun Mukai wrote: ...
6 years, 1 month ago (2014-11-15 02:40:31 UTC) #9
afakhry
https://codereview.chromium.org/727583002/diff/40001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/727583002/diff/40001/ash/accelerators/accelerator_controller.cc#newcode481 ash/accelerators/accelerator_controller.cc:481: DCHECK_EQ(ui::VKEY_LWIN, accelerator.key_code()); I also removed this line as it ...
6 years, 1 month ago (2014-11-15 03:04:58 UTC) #10
afakhry
6 years, 1 month ago (2014-11-15 04:23:02 UTC) #11
Jun Mukai
https://codereview.chromium.org/727583002/diff/40001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/727583002/diff/40001/ash/shell.cc#newcode932 ash/shell.cc:932: AddPreTargetHandler(ui::AcceleratorHistory::GetInstance()); On 2014/11/15 02:40:31, afakhry wrote: > On 2014/11/15 ...
6 years, 1 month ago (2014-11-17 17:39:20 UTC) #12
afakhry
https://codereview.chromium.org/727583002/diff/40001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/727583002/diff/40001/ash/shell.cc#newcode932 ash/shell.cc:932: AddPreTargetHandler(ui::AcceleratorHistory::GetInstance()); On 2014/11/17 17:39:20, Jun Mukai wrote: > On ...
6 years, 1 month ago (2014-11-17 23:10:18 UTC) #13
Jun Mukai
can we stop doing singleton and share the instance between accelerator_controller and accelerator_filter? Both are ...
6 years, 1 month ago (2014-11-18 01:44:03 UTC) #14
afakhry
On 2014/11/18 01:44:03, Jun Mukai wrote: > can we stop doing singleton and share the ...
6 years, 1 month ago (2014-11-18 02:18:01 UTC) #15
afakhry
6 years, 1 month ago (2014-11-18 03:00:05 UTC) #16
Jun Mukai
Also edit athena files which use accelerator_filter. Although we won't use athena files anymore, we ...
6 years, 1 month ago (2014-11-18 17:33:44 UTC) #17
afakhry
https://codereview.chromium.org/727583002/diff/100001/ash/accelerators/accelerator_controller.h File ash/accelerators/accelerator_controller.h (right): https://codereview.chromium.org/727583002/diff/100001/ash/accelerators/accelerator_controller.h#newcode148 ash/accelerators/accelerator_controller.h:148: ui::AcceleratorHistory* accelerator_history_; On 2014/11/18 17:33:44, Jun Mukai wrote: > ...
6 years, 1 month ago (2014-11-18 19:23:52 UTC) #18
Jun Mukai
lgtm however -- I'm not the owner of those files. Please wait for the review ...
6 years, 1 month ago (2014-11-18 21:46:21 UTC) #19
afakhry
On 2014/11/18 21:46:21, Jun Mukai wrote: > lgtm > > however -- I'm not the ...
6 years, 1 month ago (2014-11-18 21:51:48 UTC) #20
sky
LGTM with the following fixed https://codereview.chromium.org/727583002/diff/120001/ash/accelerators/accelerator_controller_unittest.cc File ash/accelerators/accelerator_controller_unittest.cc (right): https://codereview.chromium.org/727583002/diff/120001/ash/accelerators/accelerator_controller_unittest.cc#newcode256 ash/accelerators/accelerator_controller_unittest.cc:256: static ui::Accelerator GetPreviousAccelerator() { ...
6 years, 1 month ago (2014-11-18 22:11:48 UTC) #21
afakhry
https://codereview.chromium.org/727583002/diff/120001/ash/accelerators/accelerator_controller_unittest.cc File ash/accelerators/accelerator_controller_unittest.cc (right): https://codereview.chromium.org/727583002/diff/120001/ash/accelerators/accelerator_controller_unittest.cc#newcode256 ash/accelerators/accelerator_controller_unittest.cc:256: static ui::Accelerator GetPreviousAccelerator() { On 2014/11/18 22:11:48, sky wrote: ...
6 years, 1 month ago (2014-11-18 23:08:40 UTC) #22
afakhry
6 years, 1 month ago (2014-11-18 23:18:32 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/727583002/140001
6 years, 1 month ago (2014-11-18 23:26:40 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/18505) linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/35257) mac_chromium_compile_dbg_ng ...
6 years, 1 month ago (2014-11-18 23:44:42 UTC) #27
afakhry
Added one line at the end of files for Mac. Modified Build.gn in /ui/base/ Guarded ...
6 years, 1 month ago (2014-11-19 01:42:37 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/727583002/160001
6 years, 1 month ago (2014-11-19 01:44:56 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/648)
6 years, 1 month ago (2014-11-19 02:38:19 UTC) #32
afakhry
On 2014/11/19 02:38:19, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 1 month ago (2014-11-20 02:53:01 UTC) #33
Jun Mukai
lgtm++ But please receive review from dmazzoni (or someone owning chrome/browser/chromeos/accessibility)
6 years, 1 month ago (2014-11-20 03:05:46 UTC) #34
afakhry
6 years, 1 month ago (2014-11-20 03:08:06 UTC) #36
afakhry
On 2014/11/20 03:08:06, afakhry wrote: @dmazzoni Could you please take a look at the change ...
6 years, 1 month ago (2014-11-20 19:55:09 UTC) #37
dmazzoni
https://codereview.chromium.org/727583002/diff/180001/chrome/browser/chromeos/accessibility/sticky_keys_browsertest.cc File chrome/browser/chromeos/accessibility/sticky_keys_browsertest.cc (right): https://codereview.chromium.org/727583002/diff/180001/chrome/browser/chromeos/accessibility/sticky_keys_browsertest.cc#newcode46 chrome/browser/chromeos/accessibility/sticky_keys_browsertest.cc:46: void SendKeyPress(ui::KeyboardCode key) { Your changes are fine, but ...
6 years, 1 month ago (2014-11-20 21:32:38 UTC) #38
afakhry
https://codereview.chromium.org/727583002/diff/180001/chrome/browser/chromeos/accessibility/sticky_keys_browsertest.cc File chrome/browser/chromeos/accessibility/sticky_keys_browsertest.cc (right): https://codereview.chromium.org/727583002/diff/180001/chrome/browser/chromeos/accessibility/sticky_keys_browsertest.cc#newcode46 chrome/browser/chromeos/accessibility/sticky_keys_browsertest.cc:46: void SendKeyPress(ui::KeyboardCode key) { On 2014/11/20 21:32:38, dmazzoni wrote: ...
6 years, 1 month ago (2014-11-21 02:15:03 UTC) #39
dmazzoni
lgtm Thanks!
6 years, 1 month ago (2014-11-21 06:25:28 UTC) #40
afakhry
On 2014/11/21 06:25:28, dmazzoni wrote: > lgtm > > Thanks! You're welcome! :)
6 years, 1 month ago (2014-11-21 17:24:12 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/727583002/200001
6 years, 1 month ago (2014-11-21 17:24:51 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/84969) android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/24337) android_chromium_gn_compile_rel ...
6 years, 1 month ago (2014-11-21 17:28:08 UTC) #45
afakhry
On 2014/11/21 17:28:08, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 1 month ago (2014-11-21 18:43:37 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/727583002/220001
6 years, 1 month ago (2014-11-21 18:44:59 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/85020) android_chromium_gn_compile_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/19600) android_chromium_gn_compile_rel ...
6 years, 1 month ago (2014-11-21 18:50:00 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/727583002/240001
6 years, 1 month ago (2014-11-21 20:08:08 UTC) #52
commit-bot: I haz the power
Committed patchset #13 (id:240001)
6 years, 1 month ago (2014-11-21 21:06:29 UTC) #53
commit-bot: I haz the power
6 years, 1 month ago (2014-11-21 21:07:13 UTC) #54
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/5546373f24680054ad4e1eca425b5b1b7291dfe9
Cr-Commit-Position: refs/heads/master@{#305278}

Powered by Google App Engine
This is Rietveld 408576698