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

Issue 491023: Add a keyboard shortcut on Escape that emits the IDC_STOP command.... (Closed)

Created:
11 years ago by plz use chromium.org account
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add a keyboard shortcut on Escape that emits the IDC_STOP command. BUG=20916 TEST=Load something big (http://cnn.com/) and hit escape. Page load will stop. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34942

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : Add a keyboard shortcut on Escape that emits the IDC_STOP command.... #

Total comments: 2

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -7 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view_mac.mm View 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.mm View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/chrome_event_processing_window.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/chrome_event_processing_window.mm View 2 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/global_keyboard_shortcuts_mac.h View 3 3 chunks +16 lines, -4 lines 0 comments Download
M chrome/browser/global_keyboard_shortcuts_mac.mm View 1 2 3 3 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/global_keyboard_shortcuts_mac_unittest.cc View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Nico
Did you test that if you have a slow-loading HTML page with a e.g. a ...
11 years ago (2009-12-10 23:43:25 UTC) #1
Scott Hess - ex-Googler
http://codereview.chromium.org/491023/diff/1/2 File chrome/browser/global_keyboard_shortcuts_mac.mm (right): http://codereview.chromium.org/491023/diff/1/2#newcode45 chrome/browser/global_keyboard_shortcuts_mac.mm:45: {false, false, false, false, kVK_Escape, IDC_STOP}, On 2009/12/10 23:43:25, ...
11 years ago (2009-12-11 01:10:39 UTC) #2
Nico
I think it's ok to get this in and then look at the omnibox esc ...
11 years ago (2009-12-11 01:23:56 UTC) #3
plz use chromium.org account
Ok, I did the following test: o Go to http://unixpapa.com/js/testkey.html and hit escape a few ...
11 years ago (2009-12-11 02:04:28 UTC) #4
Scott Hess - ex-Googler
LGTM http://codereview.chromium.org/491023/diff/2002/2004 File chrome/browser/autocomplete/autocomplete_edit_view_mac.mm (right): http://codereview.chromium.org/491023/diff/2002/2004#newcode603 chrome/browser/autocomplete/autocomplete_edit_view_mac.mm:603: return model_->OnEscapeKeyPressed(); I think this is right. The ...
11 years ago (2009-12-11 02:07:58 UTC) #5
Nico
Another test case: o Open find bar, hit esc. It should close, loading shouldn't stop.
11 years ago (2009-12-11 02:10:50 UTC) #6
plz use chromium.org account
ok, the tests shess suggested work. The find bar doesn't however. When I move the ...
11 years ago (2009-12-11 02:21:08 UTC) #7
plz use chromium.org account
Ok, I've introduced a new hook to catch window level keyboard shortcuts which is executed ...
11 years ago (2009-12-16 16:41:20 UTC) #8
Scott Hess - ex-Googler
LGTM, but I feel sad that someday I'll have to debug a problem related to ...
11 years ago (2009-12-16 19:45:49 UTC) #9
Nico
LGTM. Doesn't look as bad as it sounds. http://codereview.chromium.org/491023/diff/6001/7004 File chrome/browser/global_keyboard_shortcuts_mac.h (right): http://codereview.chromium.org/491023/diff/6001/7004#newcode31 chrome/browser/global_keyboard_shortcuts_mac.h:31: // ...
11 years ago (2009-12-16 20:03:08 UTC) #10
plz use chromium.org account
11 years ago (2009-12-17 10:34:50 UTC) #11
ok, here are the updated comments

Powered by Google App Engine
This is Rietveld 408576698