git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Arrow keys broken in gitk

From
Sven van Haastregt <svenvh@gmail.com>
Date
Jul 24, 2015, 19:39 UTC
Message-ID
<55B29475.6010902@gmail.com>
Roland Lutz <rlutz <at> hedmen.org> writes:
 > in gitk on Debian jessie (Git version 2.1.4), the left/right arrow
 > keys don't work in the text input fields.  When I click into the SHA
 > ID field or either search field and press the left or right arrow
 > key, nothing happens.  I'd expect the text cursor to move one
 > character forward or back.

Confirming the problem with Tk 8.6 for git 2.4.6. The <home> and <end> keys are also affected inside text fields. Running gitk with Tk 8.5 (i.e., wish8.5) gives the expected behaviour.

It seems changes to the text and entry widget bindings in Tk 8.6 are causing the problem. Quoting http://wiki.tcl.tk/22115 :

``The text widget's default bindings seem to have changed pretty considerably - a lot of things are now handled via custom events instead of direct bindings (notably things which move the cursor and alter selection)''

Sven
Message 1 of 1 in “Re: Arrow keys broken in gitk”
  1. Sven van HaastregtJul 24, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.