While using a Text widget, if I were to swap the first two default elements in the bindtags tuple (text._w,'Text') swapped to ('Text',text._w), ie the Text widget now recieves all the key events before a bound event handler does, the Text widget will eat up Tabs and the event handler will never be called. The attached py file demonstrates just that. It works with all the other keys, why not tabs?
skip was right. An equivalent tcl program shows the same behaviour. Tested with tcl/tk 8.4.6 Corrected python scripts (the original attached files were broken) and equivalent tcl scripts attached. Matthias Kievernagel
The "tab" key is bound globally to move the focus to the next widget, but that is not what you would want for a text widget. So, text widgets breaks the natural flow of tab key events to achieve this, and, when you specify bindings like that (in your "not ok" example), it stops your widget-level binding from firing. I don't see anything to be fixed here, so I'm closing it.
History
Date
User
Action
Args
2022-04-10 16:04:05
admin
set
github: 34564
2008-05-15 16:53:49
gpolo
set
status: open -> closednosy: + gpoloresolution: not a bugmessages: +