diff --git a/lang/Spanish.ini b/lang/Spanish.ini index 24304e6eb..140a6651b 100644 --- a/lang/Spanish.ini +++ b/lang/Spanish.ini @@ -57,7 +57,7 @@ PERM_BAN_DESC = "/permban [NAME|ID] - Banea al jugador de todas tus partidas." MOD_DESC = "/moderator [NAME|ID] - Permite a un jugador usar comandos como /kick, /ban o /permban de cualquier partida que crees." NAMETAGS_DESC = "/nametags [show-tag|show-health] - Cambia si ves tu propia etiqueta y si ves la salud" UNRECOGNIZED = "Comando desconocido." -MOD_GRANTED = "\\#fff982\\Ahora eres un moderador." +MOD_GRANTED = "\\#fff982\\Ahora eres moderador." ALL_COMMANDS = "Todos los comandos" TAB_COMPLETE_INFO = "Pulsa TAB para autocompletar comandos, usa Shift+TAB para retroceder" diff --git a/src/pc/djui/djui_interactable.c b/src/pc/djui/djui_interactable.c index 79137aeb3..e673cdc23 100644 --- a/src/pc/djui/djui_interactable.c +++ b/src/pc/djui/djui_interactable.c @@ -211,7 +211,13 @@ bool djui_interactable_on_key_down(int scancode) { } } - if (gDjuiChatBox != NULL) { + 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; bool pressChatCommand = false; for (int i = 0; i < MAX_BINDS; i++) {