Code

git-gui: Don't bind F5/M1-R in all windows
authorShawn O. Pearce <spearce@spearce.org>
Fri, 6 Jul 2007 02:16:38 +0000 (22:16 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 6 Jul 2007 07:59:34 +0000 (03:59 -0400)
We actually only want our F5/M1-R keystroke bound in the main window.
Within a browser/blame/console window pressing these keys should not
execute the rescan action.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh

index 6b7321bb03284fd52bae608f161b2fe4e094437f..a1cf873e359a64abbffb7809357ca7072945e3ab 100755 (executable)
@@ -2149,9 +2149,9 @@ if {[is_enabled branch]} {
        bind . <$M1B-Key-N> do_create_branch
 }
 
-bind all <Key-F5> do_rescan
-bind all <$M1B-Key-r> do_rescan
-bind all <$M1B-Key-R> do_rescan
+bind .   <Key-F5>     do_rescan
+bind .   <$M1B-Key-r> do_rescan
+bind .   <$M1B-Key-R> do_rescan
 bind .   <$M1B-Key-s> do_signoff
 bind .   <$M1B-Key-S> do_signoff
 bind .   <$M1B-Key-i> do_add_all