mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Don't check that a focusable widget can be focused
As per https://github.com/Textualize/textual/pull/954#discussion_r999501580 Good catch!
This commit is contained in:
@@ -263,7 +263,7 @@ class Screen(Widget):
|
||||
for candidate in reversed(
|
||||
focusable_widgets[widget_index + 1 :] + focusable_widgets[:widget_index]
|
||||
):
|
||||
if candidate not in avoiding and candidate.can_focus:
|
||||
if candidate not in avoiding:
|
||||
chosen = candidate
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user