also allow space for keyboard clicks

This commit is contained in:
Ryan Fleury committed 2024-01-23 14:31:44 -08:00
1 parent 804a8406b9
commit f50ffd17aa
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -2437,7 +2437,8 @@ ui_signal_from_box(UI_Box *box)
B32 keyboard_click = 0;
if(!disabled && is_focused && box->flags & UI_BoxFlag_KeyboardClickable)
{
if(os_key_press(ui_events(), ui_window(), 0, OS_Key_Return))
if(os_key_press(ui_events(), ui_window(), 0, OS_Key_Return) != 0 ||
os_key_press(ui_events(), ui_window(), 0, OS_Key_Space) != 0)
{
keyboard_click = 1;
result.clicked = 1;