summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 53a291a)
raw | patch | inline | side by side (parent: 53a291a)
author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 4 Apr 2007 15:45:33 +0000 (11:45 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 4 Apr 2007 15:45:33 +0000 (11:45 -0400) |
If a dialog/window has a default button registered not every
platform associates the return key with that button, but all
users do. We have to register the binding of the return key
ourselves to make sure the user's expectations of pressing
return will activate the default button are met.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
platform associates the return key with that button, but all
users do. We have to register the binding of the return key
ourselves to make sure the user's expectations of pressing
return will activate the default button are met.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index 6439bee6ac565a09deb8cbed68e469ef0a45a1ce..882b90723d7be8219f67ddfdb8979bc331d6f71f 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
bind $w <Visibility> "grab $w; focus $w.buttons.create"
bind $w <Key-Escape> "destroy $w"
+ bind $w <Key-Return> [list start_push_anywhere_action $w]
wm title $w "[appname] ([reponame]): Push"
tkwait window $w
}
bind $w <Visibility> "grab $w; focus $w.buttons.save"
bind $w <Key-Escape> "destroy $w"
+ bind $w <Key-Return> [list do_save_config $w]
wm title $w "[appname] ([reponame]): Options"
tkwait window $w
}