Prevent alt+enter from opening chat
This commit is contained in:
parent
e3f7c91683
commit
26216eb40b
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue