mirror of
https://github.com/1j01/textual-paint.git
synced 2024-11-24 08:44:45 +03:00
Fix regression where CharInput defaults to focused
Originally the File menu was getting the default focus, though this was not useful because the menus are not keyboard accessible yet, but when I made the menu items not accept focus, the auto focus behavior became to focus the CharInput, causing `pytest -k test_paint_app` to fail. No focus makes more sense than the File menu item or the CharInput.
This commit is contained in:
parent
fa4d961fb4
commit
4b390d884b
@ -112,6 +112,8 @@ class PaintApp(App[None]):
|
|||||||
|
|
||||||
CSS_PATH = "paint.css"
|
CSS_PATH = "paint.css"
|
||||||
|
|
||||||
|
AUTO_FOCUS = None
|
||||||
|
|
||||||
# These call action_* methods on the widget.
|
# These call action_* methods on the widget.
|
||||||
# They can have parameters, if need be.
|
# They can have parameters, if need be.
|
||||||
# https://textual.textualize.io/guide/actions/
|
# https://textual.textualize.io/guide/actions/
|
||||||
|
Loading…
Reference in New Issue
Block a user