mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-27 09:50:10 +00:00
fix ctx menu closing escape consumption rules; fix top bar prioritization rules
This commit is contained in:
+6
-6
@@ -1172,6 +1172,12 @@ ui_begin_build(OS_Handle window, UI_EventList *events, UI_IconInfo *icon_info, U
|
||||
ui_state->active_box_key[k] = ui_key_zero();
|
||||
}
|
||||
}
|
||||
|
||||
//- rjf: escape -> close context menu
|
||||
if(ui_any_ctx_menu_is_open() && ui_slot_press(UI_EventActionSlot_Cancel))
|
||||
{
|
||||
ui_ctx_menu_close();
|
||||
}
|
||||
}
|
||||
|
||||
internal void
|
||||
@@ -1179,12 +1185,6 @@ ui_end_build(void)
|
||||
{
|
||||
ProfBeginFunction();
|
||||
|
||||
//- rjf: escape -> close context menu
|
||||
if(ui_state->ctx_menu_open != 0 && ui_slot_press(UI_EventActionSlot_Cancel))
|
||||
{
|
||||
ui_ctx_menu_close();
|
||||
}
|
||||
|
||||
//- rjf: prune untouched or transient boxes in the cache
|
||||
ProfScope("ui prune unused boxes")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user