From e95dc8c226f1aef42e18f1d387d77609a084ff9c Mon Sep 17 00:00:00 2001 From: Jaime Passos <lazymyuutsu@gmail.com> Date: Mon, 9 Dec 2019 14:38:23 -0300 Subject: [PATCH] :earless: --- src/hu_stuff.c | 2 +- src/sdl/i_video.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hu_stuff.c b/src/hu_stuff.c index a1019e9ab..cd6e18b82 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -1287,7 +1287,7 @@ boolean HU_Responder(event_t *ev) c = (INT32)ev->data1; // pasting. pasting is cool. chat is a bit limited, though :( - if (((c == 'v' || c == 'V') && ctrldown && ev->type == ev_textinput) && !CHAT_MUTE) + if (((c == 'v' || c == 'V') && ctrldown && ev->type == ev_keydown) && !CHAT_MUTE) { const char *paste = I_ClipboardPaste(); size_t chatlen; diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 95c8c553a..2b4ecf2a5 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -333,7 +333,7 @@ static INT32 Impl_SDL_Scancode_To_Keycode(SDL_Scancode code, Uint32 type) } // Do send keyup events to avoid stuck movement keys - if (type != SDL_KEYUP) + if (type != SDL_KEYUP && (!ctrldown)) { // Lactozilla: console input if (CON_AcceptInput()) -- GitLab