-
Notifications
You must be signed in to change notification settings - Fork 352
Open
Labels
guiRelated to arcade GUI (sub module arcade.gui)Related to arcade GUI (sub module arcade.gui)
Description
It seems like the focus is not showing if there is no controller, which is good in my opinion, but the space key press event is still catched
even if there is, seems like its still catched and not forwarded
for some reason, the space event is handled instantly:
if isinstance(event, UIKeyPressEvent):
if event.symbol == arcade.key.TAB:
if event.modifiers & arcade.key.MOD_SHIFT:
self.focus_previous()
else:
self.focus_next()
return EVENT_HANDLED
elif event.symbol == arcade.key.SPACE:
self._start_interaction()
return EVENT_HANDLED
https://discord.com/channels/458662222697070613/1344768086821175447/1374397523409768468
Update
- The UIFocusGroup still catches space even if no controller is connected.
- what do you think about renaming UIFocusGroup to UIFocusAnchorLayout and making a UIFocusBoxLayout and UIFocusGridLayout?
Metadata
Metadata
Assignees
Labels
guiRelated to arcade GUI (sub module arcade.gui)Related to arcade GUI (sub module arcade.gui)