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

Issue 2128243003: Make most browser accelerators not repeat. (Closed)

Created:
4 years, 5 months ago by Daniel Erat
Modified:
4 years, 3 months ago
Reviewers:
sky, Evan Stade
CC:
chromium-reviews, tfarina, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make most browser accelerators not repeat. Prevent browser accelerators from repeating unless they're associated with the following commands: IDC_FIND_NEXT IDC_FIND_PREVIOUS IDC_FOCUS_NEXT_PANE IDC_FOCUS_PREVIOUS_PANE IDC_MOVE_TAB_NEXT IDC_MOVE_TAB_PREVIOUS IDC_SELECT_NEXT_TAB IDC_SELECT_PREVIOUS_TAB BUG=626154 TEST=Ctrl-Tab still repeats but Ctrl-t doesn't Committed: https://crrev.com/42d287c9658c6bfa1202275597f28399409e8603 Cr-Commit-Position: refs/heads/master@{#416995}

Patch Set 1 #

Total comments: 3

Patch Set 2 : use set and fix tests #

Total comments: 2

Patch Set 3 : don't cache accelerators in BrowserView #

Patch Set 4 : update comment in test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -4 lines) Patch
M chrome/browser/ui/views/accelerator_table.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/accelerator_table.cc View 1 2 3 chunks +21 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_unittest.cc View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download
M ui/base/accelerators/accelerator_manager.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 44 (19 generated)
Daniel Erat
https://codereview.chromium.org/2128243003/diff/1/ui/base/accelerators/accelerator_manager.cc File ui/base/accelerators/accelerator_manager.cc (right): https://codereview.chromium.org/2128243003/diff/1/ui/base/accelerators/accelerator_manager.cc#newcode28 ui/base/accelerators/accelerator_manager.cc:28: if (priority == kHighPriority) { this isn't exactly related ...
4 years, 5 months ago (2016-07-07 21:08:50 UTC) #2
Daniel Erat
Peter, I'm assuming you'll let me know if this is a horrible idea. :-)
4 years, 5 months ago (2016-07-07 21:09:19 UTC) #3
Peter Kasting
Hmmm. I'm definitely suspicious of this, because it breaks native key-repeating behavior. What do other ...
4 years, 5 months ago (2016-07-07 21:17:57 UTC) #4
Daniel Erat
On 2016/07/07 21:17:57, Peter Kasting wrote: > Hmmm. I'm definitely suspicious of this, because it ...
4 years, 5 months ago (2016-07-07 21:30:52 UTC) #5
Peter Kasting
On 2016/07/07 21:30:52, Daniel Erat wrote: > On 2016/07/07 21:17:57, Peter Kasting wrote: > > ...
4 years, 5 months ago (2016-07-07 21:42:44 UTC) #6
sky
IMO if users are complaining about this it wouldn't be unique to chrome, and the ...
4 years, 5 months ago (2016-07-07 22:29:02 UTC) #7
Daniel Erat
On 2016/07/07 22:29:02, sky wrote: > IMO if users are complaining about this it wouldn't ...
4 years, 5 months ago (2016-07-08 00:58:10 UTC) #8
Peter Kasting
On 2016/07/08 00:58:10, Daniel Erat wrote: > On 2016/07/07 22:29:02, sky wrote: > > IMO ...
4 years, 5 months ago (2016-07-08 01:15:21 UTC) #9
sky
Yes, Ainslie, sorry for not being clear. -Scott On Thu, Jul 7, 2016 at 6:15 ...
4 years, 5 months ago (2016-07-08 02:28:54 UTC) #10
Peter Kasting
Removing self from review (see comments on bug)
4 years, 4 months ago (2016-08-20 03:04:16 UTC) #13
Daniel Erat
scott and evan, we had some more discussion of this over email (subject "Is the ...
4 years, 3 months ago (2016-08-31 22:18:10 UTC) #15
Evan Stade
On 2016/08/31 22:18:10, Daniel Erat wrote: > scott and evan, we had some more discussion ...
4 years, 3 months ago (2016-08-31 22:30:08 UTC) #20
sky
https://codereview.chromium.org/2128243003/diff/1/chrome/browser/ui/views/accelerator_table.cc File chrome/browser/ui/views/accelerator_table.cc (right): https://codereview.chromium.org/2128243003/diff/1/chrome/browser/ui/views/accelerator_table.cc#newcode284 chrome/browser/ui/views/accelerator_table.cc:284: return std::vector<int>(kRepeatableCommandIds, Can this be a set?
4 years, 3 months ago (2016-08-31 23:46:24 UTC) #21
sky
On 2016/08/31 22:18:10, Daniel Erat wrote: > scott and evan, we had some more discussion ...
4 years, 3 months ago (2016-08-31 23:46:41 UTC) #22
Daniel Erat
thanks, scott. i've merged and hopefully worked around some test issues due to accelerator differences ...
4 years, 3 months ago (2016-09-01 16:48:30 UTC) #23
sky
https://codereview.chromium.org/2128243003/diff/20001/chrome/browser/ui/views/frame/browser_view.h File chrome/browser/ui/views/frame/browser_view.h (right): https://codereview.chromium.org/2128243003/diff/20001/chrome/browser/ui/views/frame/browser_view.h#newcode666 chrome/browser/ui/views/frame/browser_view.h:666: std::set<int> repeatable_command_ids_; How often do we trigger accelerators, especially ...
4 years, 3 months ago (2016-09-01 19:31:06 UTC) #28
Daniel Erat
https://codereview.chromium.org/2128243003/diff/20001/chrome/browser/ui/views/frame/browser_view.h File chrome/browser/ui/views/frame/browser_view.h (right): https://codereview.chromium.org/2128243003/diff/20001/chrome/browser/ui/views/frame/browser_view.h#newcode666 chrome/browser/ui/views/frame/browser_view.h:666: std::set<int> repeatable_command_ids_; On 2016/09/01 19:31:06, sky wrote: > How ...
4 years, 3 months ago (2016-09-01 19:47:31 UTC) #29
sky
Leave it then. LGTM
4 years, 3 months ago (2016-09-01 21:47:52 UTC) #30
sky
I do like the IsCommandRepeatable option. On Thu, Sep 1, 2016 at 12:47 PM, <derat@chromium.org> ...
4 years, 3 months ago (2016-09-01 21:48:18 UTC) #31
Daniel Erat
On 2016/09/01 21:48:18, sky wrote: > I do like the IsCommandRepeatable option. cool, i shall ...
4 years, 3 months ago (2016-09-02 00:05:08 UTC) #32
Daniel Erat
thanks, i've simplified this now.
4 years, 3 months ago (2016-09-02 00:30:11 UTC) #34
sky
Much better, thanks. LGTM
4 years, 3 months ago (2016-09-02 14:07:43 UTC) #38
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/2128243003/60001
4 years, 3 months ago (2016-09-07 16:42:57 UTC) #40
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-07 18:04:21 UTC) #42
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 18:07:06 UTC) #44
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/42d287c9658c6bfa1202275597f28399409e8603
Cr-Commit-Position: refs/heads/master@{#416995}

Powered by Google App Engine
This is Rietveld 408576698