Skip to content

gitk - arrow keys do not work anymore in text input fields of main window #495

Closed
@harndt

Description

@harndt

Since updating to git 2.6.1 (64 bit) on Windows 7 (64 bit) the left and right arrow keys do not work anymore in text input fields of the main window of gitk (SHA1 ID, find, search). To reproduce, start gitk, click into the SHA1 ID text field and try to move the cursor with the left and right arrow keys.

Changing lines 2547/2548 in gitk from

bindkey <Key-Right> "goforw"
bindkey <Key-Left> "goback"

to

bindkey <<NextChar>> "goforw"
bindkey <<PrevChar>> "goback"

seems to fix the problem.

This seems to be a byproduct of updating tcl/tk to 8.6. Tk Changes / New Events near the bottom of http://wiki.tcl.tk/21276 mentions newly introduced events NextChar/PrevChar which inspired me to try the above fix. This probably means this bug affects other operating systems too.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions