summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 82a2d6b)
raw | patch | inline | side by side (parent: 82a2d6b)
author | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 12 Jun 2007 04:04:30 +0000 (00:04 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 21 Jun 2007 03:25:23 +0000 (23:25 -0400) |
The blame viewer is composed of two different areas, the file
area on top and the commit area on the bottom. If users are
trying to shift the focus it is probably because they want to
shift from one area to the other, so we just setup Tab and
Shift-Tab to jump from the one half to the other in a cycle.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
area on top and the commit area on the bottom. If users are
trying to shift the focus it is probably because they want to
shift from one area to the other, so we just setup Tab and
Shift-Tab to jump from the one half to the other in a cycle.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/blame.tcl | patch | blob | history |
diff --git a/lib/blame.tcl b/lib/blame.tcl
index 139171d39edd343c48bfb3cb2a94b1437b596f07..076233c3c33a1a39a1c5cb5727edfe240e618607 100644 (file)
--- a/lib/blame.tcl
+++ b/lib/blame.tcl
set cursorW %W
tk_popup $w.ctxm %X %Y
"
+ bind $i <Shift-Tab> "[list focus $w_cviewer];break"
+ bind $i <Tab> "[list focus $w_cviewer];break"
}
foreach i [concat $w_columns $w_cviewer] {
bind $i <Control-Key-f> {catch {%W yview scroll 1 pages};break}
}
+ bind $w_cviewer <Shift-Tab> "[list focus $w_file];break"
+ bind $w_cviewer <Tab> "[list focus $w_file];break"
bind $w_cviewer <Button-1> [list focus $w_cviewer]
- bind $top <Visibility> [list focus $top]
+ bind $w_file <Visibility> [list focus $w_file]
grid configure $w.header -sticky ew
grid configure $w.file_pane -sticky nsew