Skip to content

Conversation

@TomJGooding
Copy link
Contributor

When running textual keys, currently the 'Clear' button will have initial focus. This can be confusing if you're trying to test the enter key with some modifiers, as this might invoke a button press!

This simply re-orders the composed widgets so the key log is initially focussed instead.

When running `textual keys`, currently the 'Clear' button will have initial focus. This can be confusing if you're trying to test the `enter` key with some modifiers, as this might invoke a button press! This simply re-orders the composed widgets so the key log is initially focussed instead.
@willmcgugan
Copy link
Member

I would have gone with AUTO_FOCUS="KeyLog" myself!

@TomJGooding
Copy link
Contributor Author

Sure, that also works, but why? This does the same thing and reflects the order of the widgets as they are displayed.

@willmcgugan
Copy link
Member

I think the addition of the classvar makes it more explicit which is focused, but honestly I'm not fussed either way...

@willmcgugan willmcgugan merged commit 19d9a5b into Textualize:main Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants