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

Issue 273032: Do not send some keyboard shortcuts to the renderers (Closed)

Created:
11 years, 2 months ago by Nico
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Do not send some keyboard shortcuts to the renderers Walking the whole menu on every keypress seems ridiculous. Linux does this too :-/ (Caching is made hard because the user can change key equivalents in system preferences at every point in time, and we're not notified of that. And people only hit max 5 keys/second, so it's not all that ridiculous). There's a UI test for this, but the interactive UI tests are not enabled on OS X, so it's not executed. Menu walking code based on code from CocoatechCore. BUG=5496, 15090, 24877 TEST=Go to http://unixpapa.com/js/testkey.html , check "keydown", focus the textbox, and make sure that cmd-t still opens tabs, cmd-shift-[ still switches tabs, cmd-w still closes tabs. however, cmd-L should not focus url bar and cmd-1 should not go to the first tab. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30032

Patch Set 1 #

Patch Set 2 : x #

Patch Set 3 : cleanup #

Patch Set 4 : use cr_firesForEvent #

Patch Set 5 : cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -4 lines) Patch
M chrome/browser/blocked_popup_container_interactive_uitest.cc View 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.mm View 1 2 3 4 2 chunks +58 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
James Su
I'm not familiar with this part of code. However I noticed that both Linux and ...
11 years, 2 months ago (2009-10-13 09:12:33 UTC) #1
Nico
On 2009/10/13 09:12:33, James Su wrote: > I'm not familiar with this part of code. ...
11 years, 2 months ago (2009-10-13 14:08:42 UTC) #2
pink (ping after 24hrs)
drive-by: note that we do sometimes change the command keys for menu items at runtime ...
11 years, 2 months ago (2009-10-13 14:38:35 UTC) #3
James Su
I'll look into this piece of code to see if it's possible to use another ...
11 years, 2 months ago (2009-10-14 01:01:14 UTC) #4
Nico
It's a secret how Cocoa does it. You say [[NSApp mainMenu] performKeyEquivalent:keyEvent], and cocoa checks ...
11 years, 2 months ago (2009-10-14 01:04:19 UTC) #5
Nico
Re license: I contacted the cocoatech guy, and he responded """The license is "none" use ...
11 years, 2 months ago (2009-10-14 21:46:02 UTC) #6
James Su
You can go ahead and submit this CL. I may need several days to prepare ...
11 years, 2 months ago (2009-10-14 22:38:35 UTC) #7
Nico
This is now ready to go in. LG?
11 years, 2 months ago (2009-10-26 04:17:52 UTC) #8
James Su
LGTM. But Mac trybot seems doesn't like it. On 2009/10/26 04:17:52, Nico wrote: > This ...
11 years, 2 months ago (2009-10-26 04:36:12 UTC) #9
Nico
That's because LKGR is still at r30029 but this patch depends on r30030. I'll probably ...
11 years, 2 months ago (2009-10-26 04:39:18 UTC) #10
jam
Can BrowserInteractiveTest, ReserveKeyboardAccelerators be enabled for Mac now?
11 years, 1 month ago (2009-10-26 15:45:46 UTC) #11
Nico
11 years, 1 month ago (2009-10-26 15:58:09 UTC) #12
No, interactive_tests don't run on OS X yet (
http://code.google.com/p/chromium/issues/detail?id=21276 , and this
excerpt from chrome.gyp:

        # TODO(port): enable on mac.
        {
          'includes': ['test/interactive_ui/interactive_ui_tests.gypi']
        },

).

On Mon, Oct 26, 2009 at 8:45 AM,  <jam@chromium.org> wrote:
> Can BrowserInteractiveTest, ReserveKeyboardAccelerators be enabled for Mac
> now?
>
> http://codereview.chromium.org/273032
>

Powered by Google App Engine
This is Rietveld 408576698