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

Issue 5072003: Allow keypad 1..9 keys to be used as shortcuts to switch tabs.... (Closed)

Created:
10 years, 1 month ago by Avi (use Gerrit)
Modified:
9 years, 7 months ago
Reviewers:
Nico
CC:
chromium-reviews, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Allow keypad 1..9 keys to be used as shortcuts to switch tabs. BUG=63143 TEST=as in bug; also verify that it doesn't regress the feature with Italian keyboard layout which has numbers requiring shift Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66452

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -29 lines) Patch
M chrome/browser/global_keyboard_shortcuts_mac.mm View 1 1 chunk +18 lines, -9 lines 0 comments Download
M chrome/browser/global_keyboard_shortcuts_mac_unittest.mm View 5 chunks +74 lines, -20 lines 2 comments Download

Messages

Total messages: 9 (0 generated)
Avi (use Gerrit)
BTW, support for using characters was added after these shortcuts, so that's probably why they ...
10 years, 1 month ago (2010-11-16 21:19:53 UTC) #1
Nico
can you check that this doesn't change how cmd-1…9 work with an italian keyboard layout? ...
10 years, 1 month ago (2010-11-16 21:27:41 UTC) #2
Avi (use Gerrit)
Now it does :)
10 years, 1 month ago (2010-11-16 22:11:11 UTC) #3
Nico
cool. is it hard to add a test for this (especially for the italian case)?
10 years, 1 month ago (2010-11-16 22:21:14 UTC) #4
Avi (use Gerrit)
The easy test is to make sure that any shortcut for the main keyboard works ...
10 years, 1 month ago (2010-11-16 22:28:07 UTC) #5
Nico
On Tue, Nov 16, 2010 at 2:28 PM, <avi@chromium.org> wrote: > The easy test is ...
10 years, 1 month ago (2010-11-16 22:30:05 UTC) #6
Avi (use Gerrit)
10 years, 1 month ago (2010-11-16 23:11:21 UTC) #7
Nico
LG thanks! http://codereview.chromium.org/5072003/diff/9001/chrome/browser/global_keyboard_shortcuts_mac_unittest.mm File chrome/browser/global_keyboard_shortcuts_mac_unittest.mm (right): http://codereview.chromium.org/5072003/diff/9001/chrome/browser/global_keyboard_shortcuts_mac_unittest.mm#newcode74 chrome/browser/global_keyboard_shortcuts_mac_unittest.mm:74: for (int i = 0; i < ...
10 years, 1 month ago (2010-11-16 23:19:34 UTC) #8
Avi (use Gerrit)
10 years, 1 month ago (2010-11-16 23:24:23 UTC) #9
http://codereview.chromium.org/5072003/diff/9001/chrome/browser/global_keyboa...
File chrome/browser/global_keyboard_shortcuts_mac_unittest.mm (right):

http://codereview.chromium.org/5072003/diff/9001/chrome/browser/global_keyboa...
chrome/browser/global_keyboard_shortcuts_mac_unittest.mm:74: for (int i = 0; i <
10; ++i) {
arraysize doesn't work because the array is of an anonymous type. Aha, it's
ARRAYSIZE_UNSAFE I was looking for and didn't find.

Powered by Google App Engine
This is Rietveld 408576698