@@ -2072,7 +2072,7 @@ proc makewindow {} {
2072
2072
global headctxmenu progresscanv progressitem progresscoords statusw
2073
2073
global fprogitem fprogcoord lastprogupdate progupdatepending
2074
2074
global rprogitem rprogcoord rownumsel numcommits
2075
- global have_tk85 use_ttk NS
2075
+ global have_tk85 have_tk86 use_ttk NS
2076
2076
global git_version
2077
2077
global worddiff
2078
2078
@@ -2562,8 +2562,13 @@ proc makewindow {} {
2562
2562
bind . <Key-Down> " selnextline 1"
2563
2563
bind . <Shift-Key-Up> " dofind -1 0"
2564
2564
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
+ }
2567
2572
bind . <Key-Prior> " selnextpage -1"
2568
2573
bind . <Key-Next> " selnextpage 1"
2569
2574
bind . <$M1B -Home> " allcanvs yview moveto 0.0"
@@ -12384,6 +12389,7 @@ set nullid2 "0000000000000000000000000000000000000001"
12384
12389
set nullfile " /dev/null"
12385
12390
12386
12391
set have_tk85 [expr {[package vcompare $tk_version " 8.5" ] >= 0}]
12392
+ set have_tk86 [expr {[package vcompare $tk_version " 8.6" ] >= 0}]
12387
12393
if {![info exists have_ttk]} {
12388
12394
set have_ttk [llength [info commands ::ttk::style]]
12389
12395
}
0 commit comments