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

Issue 324493004: Fix pressing enter key crashes overview mode without a selection. (Closed)

Created:
6 years, 6 months ago by Nina
Modified:
6 years, 6 months ago
Reviewers:
flackr, tdanderson
CC:
chromium-reviews, tdanderson+overview_chromium.org, kalyank, sadrul, ben+ash_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix pressing enter key crashes overview mode without a selection. This change adds a check before trying to select the window with the enter key that verifies that the selection is active. If it is not, pressing it has no effect. BUG=381811 TEST=WindowSelectorTest.SelectWindowWithReturnKey Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275604

Patch Set 1 #

Patch Set 2 : Added unittest #

Total comments: 12

Patch Set 3 : Fixed Terry's comments and changed SetHandled for StopPropagation so that the event is not propagat… #

Patch Set 4 : Fixed Rob's comments, test failing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -8 lines) Patch
M ash/wm/overview/window_selector.cc View 1 2 3 2 chunks +7 lines, -8 lines 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Nina
Hi Rob, Terry, Mind giving this patch a look? Thanks!
6 years, 6 months ago (2014-06-06 19:43:44 UTC) #1
tdanderson
Nico, please see my comments below. https://codereview.chromium.org/324493004/diff/20001/ash/wm/overview/window_selector.cc File ash/wm/overview/window_selector.cc (right): https://codereview.chromium.org/324493004/diff/20001/ash/wm/overview/window_selector.cc#newcode221 ash/wm/overview/window_selector.cc:221: if (grid_list_[selected_grid_index_]->is_selecting()) { ...
6 years, 6 months ago (2014-06-06 21:15:18 UTC) #2
Nina
OK, took care of comments and changed SetHandled for StopPropagation in the key event hander ...
6 years, 6 months ago (2014-06-06 21:44:33 UTC) #3
tdanderson
lgtm, over to Rob.
6 years, 6 months ago (2014-06-06 21:49:59 UTC) #4
flackr
lgtm with nit: I'd prefer to see stop propagation when handled rather than setting the ...
6 years, 6 months ago (2014-06-06 22:01:04 UTC) #5
Nina
Don't worry flackr, this only happens for the enter key, when it selects the window, ...
6 years, 6 months ago (2014-06-06 22:17:21 UTC) #6
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 6 months ago (2014-06-06 22:19:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nsatragno@chromium.org/324493004/60001
6 years, 6 months ago (2014-06-06 22:20:32 UTC) #8
commit-bot: I haz the power
6 years, 6 months ago (2014-06-07 03:53:06 UTC) #9
Message was sent while issue was closed.
Change committed as 275604

Powered by Google App Engine
This is Rietveld 408576698