fix random chat closing

This commit is contained in:
stalkerg
2023-03-01 22:51:40 +09:00
parent 5a214b175f
commit 37cf6f0c0c

View File

@@ -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;