@@ -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"
1238412389set nullfile " /dev/null"
1238512390
1238612391set have_tk85 [expr {[package vcompare $tk_version " 8.5" ] >= 0}]
12392+ set have_tk86 [expr {[package vcompare $tk_version " 8.6" ] >= 0}]
1238712393if {![info exists have_ttk]} {
1238812394 set have_ttk [llength [info commands ::ttk::style]]
1238912395}
0 commit comments