mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 21:01:04 +00:00
Ignore modifier keys in chat
(Fixes LSHIFT typing D repeatedly into chat)
This commit is contained in:
parent
fe3916a60d
commit
8fb9a3b3d5
1 changed files with 8 additions and 0 deletions
|
@ -790,6 +790,14 @@ boolean HU_Responder(event_t *ev)
|
||||||
}
|
}
|
||||||
else // if chat_on
|
else // if chat_on
|
||||||
{
|
{
|
||||||
|
// Ignore modifier keys
|
||||||
|
// Note that we do this here so users can still set
|
||||||
|
// their chat keys to one of these, if they so desire.
|
||||||
|
if (ev->data1 == KEY_LSHIFT || ev->data1 == KEY_RSHIFT
|
||||||
|
|| ev->data1 == KEY_LCTRL || ev->data1 == KEY_RCTRL
|
||||||
|
|| ev->data1 == KEY_LALT || ev->data1 == KEY_RALT)
|
||||||
|
return true;
|
||||||
|
|
||||||
c = (UINT8)ev->data1;
|
c = (UINT8)ev->data1;
|
||||||
|
|
||||||
// use console translations
|
// use console translations
|
||||||
|
|
Loading…
Reference in a new issue