textual icon indicating copy to clipboard operation
textual copied to clipboard

Better focus order

Open willmcgugan opened this issue 3 years ago • 1 comments
trafficstars

We have a fairly naive approach to the focus order in Textual.

Textual will go through widgets in the order they are defined within children.

What should probably occur is that the children are scanned in the order they appear on screen, i.e. left to right, then top to bottom.

We should probably also implement a switch to got from right to left for future rtl language support.

This can be implemented in App.focus_chain. I suspect we need to sort the focusable_children attribute in that property.

willmcgugan avatar Jul 13 '22 14:07 willmcgugan

I would be happy to help with this.

Glyphack avatar Jul 19 '22 11:07 Glyphack

Did we solve your problem?

Consider buying the Textualize developers a coffee to say thanks.

Textualize

github-actions[bot] avatar Aug 09 '22 13:08 github-actions[bot]