We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e379657 commit 13ffb25Copy full SHA for 13ffb25
1 file changed
arcade/gui/experimental/focus.py
@@ -200,7 +200,7 @@ def _get_focused_widget(self) -> UIWidget | None:
200
if len(self._focusable_widgets) == 0:
201
return None
202
203
- if len(self._focusable_widgets) < self._focused < 0:
+ if len(self._focusable_widgets) <= self._focused < 0:
204
warnings.warn("Focused widget is out of range")
205
self._focused = 0
206
0 commit comments