Prevent alt+enter from opening chat

This commit is contained in:
MysterD 2022-03-28 18:36:31 -07:00
parent e3f7c91683
commit 26216eb40b
1 changed files with 4 additions and 3 deletions

View File

@ -176,15 +176,16 @@ static void gfx_sdl_get_dimensions(uint32_t *width, uint32_t *height) {
} }
static void gfx_sdl_onkeydown(int scancode) { static void gfx_sdl_onkeydown(int scancode) {
if (kb_key_down)
kb_key_down(translate_sdl_scancode(scancode));
const Uint8 *state = SDL_GetKeyboardState(NULL); const Uint8 *state = SDL_GetKeyboardState(NULL);
if (state[SDL_SCANCODE_LALT] && state[SDL_SCANCODE_RETURN]) { if (state[SDL_SCANCODE_LALT] && state[SDL_SCANCODE_RETURN]) {
configWindow.fullscreen = !configWindow.fullscreen; configWindow.fullscreen = !configWindow.fullscreen;
configWindow.settings_changed = true; configWindow.settings_changed = true;
return;
} }
if (kb_key_down)
kb_key_down(translate_sdl_scancode(scancode));
} }
static void gfx_sdl_onkeyup(int scancode) { static void gfx_sdl_onkeyup(int scancode) {