From 25ba1f330c96ba98fc23fdb614e0feea5a06ecee Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Sat, 15 Nov 2025 13:49:08 -0500 Subject: [PATCH] Restore DJUI pause menu escape key navigation Sorry Isaac, keeping it in key down is better imo because that way you can navigate back in the pause menu using the escape key. I frequently use that and I noticed it completely closed the menu in 1.4 --- src/pc/djui/djui_interactable.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pc/djui/djui_interactable.c b/src/pc/djui/djui_interactable.c index 288844e86..cbb47a549 100644 --- a/src/pc/djui/djui_interactable.c +++ b/src/pc/djui/djui_interactable.c @@ -211,6 +211,12 @@ bool djui_interactable_on_key_down(int scancode) { } } + if (scancode == SCANCODE_ESCAPE && djui_panel_is_active()) { + // pressed escape button on keyboard + djui_panel_back(); + return true; + } + if (gDjuiChatBox != NULL && !gDjuiChatBoxFocus) { bool pressChat = false; for (int i = 0; i < MAX_BINDS; i++) { @@ -283,12 +289,6 @@ void djui_interactable_on_key_up(int scancode) { } } - if (scancode == SCANCODE_ESCAPE && djui_panel_is_active()) { - // pressed escape button on keyboard - djui_panel_back(); - return; - } - if (gDjuiPlayerList != NULL || gDjuiModList != NULL) { for (int i = 0; i < MAX_BINDS; i++) { if (scancode == (int)configKeyPlayerList[i]) {