diff --git a/src/iscreen/i_chat.cpp b/src/iscreen/i_chat.cpp index 1e644014..1552c8b0 100644 --- a/src/iscreen/i_chat.cpp +++ b/src/iscreen/i_chat.cpp @@ -939,14 +939,10 @@ void iChatKeyQuant(SDL_Event *k) { iChatInputChar(k); iChatInputEditing(k); - if (k -> type == SDL_MOUSEWHEEL) { + if (k -> type != SDL_KEYDOWN) { return; } - if (k -> type != SDL_KEYDOWN && k -> type != SDL_TEXTINPUT) { - iChatExit = 1; - return; - } if (iCheckKeyID(iKEY_CHAT, k -> key.keysym.scancode)) { iChatExit = 1; return;