Skip to content

Commit 89d4fb2

Browse files
author
Git for Windows Build Agent
committed
Merge branch 'gitk-cursor-keys'
This patch needs to be contributed to gitk proper, of course. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 02faa7b + 970cd89 commit 89d4fb2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

gitk-git/gitk

+9-3
Original file line numberDiff line numberDiff line change
@@ -2072,7 +2072,7 @@ proc makewindow {} {
20722072
global headctxmenu progresscanv progressitem progresscoords statusw
20732073
global fprogitem fprogcoord lastprogupdate progupdatepending
20742074
global rprogitem rprogcoord rownumsel numcommits
2075-
global have_tk85 use_ttk NS
2075+
global have_tk85 have_tk86 use_ttk NS
20762076
global git_version
20772077
global worddiff
20782078

@@ -2562,8 +2562,13 @@ proc makewindow {} {
25622562
bind . <Key-Down> "selnextline 1"
25632563
bind . <Shift-Key-Up> "dofind -1 0"
25642564
bind . <Shift-Key-Down> "dofind 1 0"
2565-
bindkey <Key-Right> "goforw"
2566-
bindkey <Key-Left> "goback"
2565+
if {$have_tk86} {
2566+
bindkey <<NextChar>> "goforw"
2567+
bindkey <<PrevChar>> "goback"
2568+
} else {
2569+
bindkey <Key-Right> "goforw"
2570+
bindkey <Key-Left> "goback"
2571+
}
25672572
bind . <Key-Prior> "selnextpage -1"
25682573
bind . <Key-Next> "selnextpage 1"
25692574
bind . <$M1B-Home> "allcanvs yview moveto 0.0"
@@ -12384,6 +12389,7 @@ set nullid2 "0000000000000000000000000000000000000001"
1238412389
set nullfile "/dev/null"
1238512390

1238612391
set have_tk85 [expr {[package vcompare $tk_version "8.5"] >= 0}]
12392+
set have_tk86 [expr {[package vcompare $tk_version "8.6"] >= 0}]
1238712393
if {![info exists have_ttk]} {
1238812394
set have_ttk [llength [info commands ::ttk::style]]
1238912395
}

0 commit comments

Comments
 (0)