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

Issue 525112: Implement HandleKeyboardEvent() method in HtmlDialog implementations.... (Closed)

Created:
10 years, 11 months ago by James Su
Modified:
9 years, 7 months ago
Reviewers:
Nico, akalin
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Implement HandleKeyboardEvent() method in HtmlDialog implementations. To send unhandled keyboard events to the system default handler, so that system accelerators can work as normal. BUG=30707 : Keyboard shortcuts failed to work on Bookmark sync Sign in Authentication dialog TEST=See bug report. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35902

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -0 lines) Patch
MM chrome/browser/cocoa/html_dialog_window_controller.mm View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/gtk/html_dialog_gtk.h View 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/gtk/html_dialog_gtk.cc View 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/views/html_dialog_view.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/views/html_dialog_view.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
James Su
I just tested this CL on Windows, which works as expected. And I found that ...
10 years, 11 months ago (2010-01-08 11:13:17 UTC) #1
akalin
LGTM Although I'm curious; the {Pre,}HandleKeyboardEvent() functions in the various platform BrowserWindow subclasses seem to ...
10 years, 11 months ago (2010-01-08 21:53:05 UTC) #2
Nico
LG I have the same question as akalin :-) http://codereview.chromium.org/525112/diff/2001/2004 File chrome/browser/cocoa/html_dialog_window_controller.mm (right): http://codereview.chromium.org/525112/diff/2001/2004#newcode180 chrome/browser/cocoa/html_dialog_window_controller.mm:180: ...
10 years, 11 months ago (2010-01-08 22:00:04 UTC) #3
akalin (wrong akalin)
10 years, 11 months ago (2010-01-08 22:05:42 UTC) #4
On Fri, Jan 8, 2010 at 2:00 PM,  <thakis@chromium.org> wrote:
> LG
>
> I have the same question as akalin :-)
>
> http://codereview.chromium.org/525112/diff/2001/2004#newcode180
> chrome/browser/cocoa/html_dialog_window_controller.mm:180: [event_window
> redispatchEvent:event.os_event];
> This means that all the shortcuts in global_keyboard_shortcuts_mac.mm
> won't work. That's fine atm since they are all browser-specific, but it
> feels like it could break stuff in the future.

Ah, this partially answers my question.

Perhaps add comments explaining the situation in the newly-added
functions?  something like:

// A simplified version of
BrowserWindowCocoa::HandleKeyboardShortcut().  We don't handle global
keyboard shortcuts here, but that's fine since they're all
browser-specific. (This may change in the future.)

and analogous for the other two platforms.

-- 
Frederick Akalin
Software Engineer

Powered by Google App Engine
This is Rietveld 408576698