Skip to content

v1.2.0b0 - Option to retain focus on Input after using Tab key to complete

Compare
Choose a tag to compare
@darrenburns darrenburns released this 17 Feb 18:44
· 22 commits to main since this release

Previously, when you press the Tab key to select a completion, the Input would be filled with the chosen value and focus would go to the next widget in Textual's focus chain.

Now, this behaviour is disabled by default. Pressing the Tab key to select an item in the dropdown will still fill the item, but it won't move focus. The input will behave as normal after the completion - so you can press Tab again to switch focus.

The previous functionality is still available via a new tab_moves_focus boolean switch available on the AutoComplete class.