@matheusbsbs / matheus-bagliano / commits / 914c4d4dcd
Fork 0

git-gui: Bind n/c/o accelerators in repository chooser

On Windows we need to actually setup binds for the accelerator keys, otherwise the OS doesn't respond to them when the user presses the key combinations. Apparently we automatically get these on Mac OS X when we configure the menu commands, but not on Windows. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Oct 12, 2007 at 11:13 UTC 914c4d4dcd96218d33f5fefc9c175ea785972f06
1 file changed +6
lib/choose_repository.tcl
+6
@@ -84,6 +84,8 @@ constructor pick {} {
84 -command [cb _next new] \
85 -accelerator $M1T-N \
86 -label [mc "New..."]
87 + bind $top <$M1B-n> [cb _next new]
88 + bind $top <$M1B-N> [cb _next new]
89 }
90
91 $opts tag conf link_clone -foreground blue -underline 1
@@ -95,6 +97,8 @@ constructor pick {} {
97 -command [cb _next clone] \
98 -accelerator $M1T-C \
99 -label [mc "Clone..."]
100 + bind $top <$M1B-c> [cb _next clone]
101 + bind $top <$M1B-C> [cb _next clone]
102 }
103
104 $opts tag conf link_open -foreground blue -underline 1
@@ -106,6 +110,8 @@ constructor pick {} {
110 -command [cb _next open] \
111 -accelerator $M1T-O \
112 -label [mc "Open..."]
113 + bind $top <$M1B-o> [cb _next open]
114 + bind $top <$M1B-O> [cb _next open]
115 }
116
117 $opts conf -state disabled