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

Issue 2792413002: Fix accelerator history tracking (Closed)

Created:
3 years, 8 months ago by afakhry
Modified:
3 years, 8 months ago
Reviewers:
sadrul
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix accelerator history tracking Track the currently pressed keys so that we don't mistakenly store an already pressed key as a new keypress after another key has been released. BUG=704280 TEST=covered by tests. Review-Url: https://codereview.chromium.org/2792413002 Cr-Commit-Position: refs/heads/master@{#465337} Committed: https://chromium.googlesource.com/chromium/src/+/820f3f7b4622520426a295d93852701caa204a2f

Patch Set 1 #

Patch Set 2 : Add test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -16 lines) Patch
M ui/base/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/accelerators/accelerator_history.h View 2 chunks +4 lines, -3 lines 0 comments Download
M ui/base/accelerators/accelerator_history.cc View 1 chunk +16 lines, -13 lines 2 comments Download
A ui/base/accelerators/accelerator_history_unittest.cc View 1 1 chunk +55 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (16 generated)
afakhry
Sadrul, could you please take a look? Thanks!
3 years, 8 months ago (2017-04-05 01:21:21 UTC) #8
afakhry
Sadrul, friendly ping.
3 years, 8 months ago (2017-04-06 16:25:34 UTC) #12
sadrul
https://codereview.chromium.org/2792413002/diff/20001/ui/base/accelerators/accelerator_history.cc File ui/base/accelerators/accelerator_history.cc (right): https://codereview.chromium.org/2792413002/diff/20001/ui/base/accelerators/accelerator_history.cc#newcode22 ui/base/accelerators/accelerator_history.cc:22: if (!currently_pressed_keys_.emplace(accelerator.key_code()).second) What code is generating the second Accelerator? ...
3 years, 8 months ago (2017-04-07 05:43:39 UTC) #16
afakhry
https://codereview.chromium.org/2792413002/diff/20001/ui/base/accelerators/accelerator_history.cc File ui/base/accelerators/accelerator_history.cc (right): https://codereview.chromium.org/2792413002/diff/20001/ui/base/accelerators/accelerator_history.cc#newcode22 ui/base/accelerators/accelerator_history.cc:22: if (!currently_pressed_keys_.emplace(accelerator.key_code()).second) On 2017/04/07 05:43:39, sadrul wrote: > What ...
3 years, 8 months ago (2017-04-07 15:42:57 UTC) #17
afakhry
On 2017/04/07 15:42:57, afakhry wrote: > https://codereview.chromium.org/2792413002/diff/20001/ui/base/accelerators/accelerator_history.cc > File ui/base/accelerators/accelerator_history.cc (right): > > https://codereview.chromium.org/2792413002/diff/20001/ui/base/accelerators/accelerator_history.cc#newcode22 > ...
3 years, 8 months ago (2017-04-11 22:58:43 UTC) #18
sadrul
The entire AcceleratorHistory business seems ... hacky. I am going to take another look at ...
3 years, 8 months ago (2017-04-13 13:41:54 UTC) #19
afakhry
On 2017/04/13 13:41:54, sadrul wrote: > The entire AcceleratorHistory business seems ... hacky. I am ...
3 years, 8 months ago (2017-04-14 18:03:46 UTC) #20
sadrul
On 2017/04/14 18:03:46, afakhry wrote: > On 2017/04/13 13:41:54, sadrul wrote: > > The entire ...
3 years, 8 months ago (2017-04-18 17:27:41 UTC) #21
afakhry
On 2017/04/18 17:27:41, sadrul wrote: > On 2017/04/14 18:03:46, afakhry wrote: > > On 2017/04/13 ...
3 years, 8 months ago (2017-04-18 17:44:47 UTC) #22
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/2792413002/20001
3 years, 8 months ago (2017-04-18 18:15:21 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 19:49:47 UTC) #27
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/820f3f7b4622520426a295d93852...

Powered by Google App Engine
This is Rietveld 408576698