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

Issue 3389010: Mac: Add a few more keyboard shortcuts to tabpose. (Closed)

Created:
10 years, 3 months ago by Nico
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Mac: Add a few more keyboard shortcuts to tabpose. * shift / tab-shift cycle through all open tabs * arrow keys move selection up, down, left, right * cmd-1-8 selects tab 1-8 and exits tabpose, cmd-9 selects last tab and exits tabpose * cmd-ctrl-t exits tabpose BUG=50307, 55530 TEST=try it Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=59703

Patch Set 1 #

Patch Set 2 : cmd-1-9, cmd-ctrl-t #

Total comments: 29

Patch Set 3 : comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -20 lines) Patch
M chrome/browser/cocoa/tabpose_window.mm View 1 2 11 chunks +184 lines, -20 lines 3 comments Download

Messages

Total messages: 5 (0 generated)
Nico
10 years, 3 months ago (2010-09-16 04:52:59 UTC) #1
viettrungluu
http://codereview.chromium.org/3389010/diff/3/2001 File chrome/browser/cocoa/tabpose_window.mm (right): http://codereview.chromium.org/3389010/diff/3/2001#newcode491 chrome/browser/cocoa/tabpose_window.mm:491: int get_count_x() const { return ceilf(tiles_.size() / float(count_y_)); } ...
10 years, 3 months ago (2010-09-16 05:26:29 UTC) #2
Nico
Thanks! Good comments. http://codereview.chromium.org/3389010/diff/3/2001 File chrome/browser/cocoa/tabpose_window.mm (right): http://codereview.chromium.org/3389010/diff/3/2001#newcode491 chrome/browser/cocoa/tabpose_window.mm:491: int get_count_x() const { return ceilf(tiles_.size() ...
10 years, 3 months ago (2010-09-16 06:42:39 UTC) #3
viettrungluu
Apart from a couple of stupid nits, LGTM. http://codereview.chromium.org/3389010/diff/6001/7001 File chrome/browser/cocoa/tabpose_window.mm (right): http://codereview.chromium.org/3389010/diff/6001/7001#newcode749 chrome/browser/cocoa/tabpose_window.mm:749: if ...
10 years, 3 months ago (2010-09-16 20:07:21 UTC) #4
Nico
10 years, 3 months ago (2010-09-16 20:08:54 UTC) #5
thanks!

these nits were indeed pretty stupid.

http://codereview.chromium.org/3389010/diff/6001/7001
File chrome/browser/cocoa/tabpose_window.mm (right):

http://codereview.chromium.org/3389010/diff/6001/7001#newcode749
chrome/browser/cocoa/tabpose_window.mm:749: if (new_index >=
static_cast<int>(tiles_.size()))
On 2010/09/16 20:07:21, viettrungluu wrote:
> I think this would be a fine place to use ?:.

but then i need to write "+1" twice!

Powered by Google App Engine
This is Rietveld 408576698