eval: support for multiple namespacified fallback token lookups, to account for the several possibilities of namespaces & nested namespaces & static class members nested inside of namespaces & namespaces within namespaces within classes within namespaces & wow C++ is very bad; also ui: temporarily disable space-to-click, as it conflicts with typing and this case is not yet well supported

This commit is contained in:
Ryan Fleury
2024-01-25 06:15:28 -08:00
parent 96b0dd0783
commit 66b56789c6
3 changed files with 40 additions and 32 deletions
+4 -2
View File
@@ -2443,8 +2443,10 @@ 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) != 0 ||
os_key_press(ui_events(), ui_window(), 0, OS_Key_Space) != 0)
if(os_key_press(ui_events(), ui_window(), 0, OS_Key_Return) != 0)
// TODO(rjf): need to handle case where this would conflict with typing.
// 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;