mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Fix capslock being wonky.
This commit is contained in:
parent
fe0b6dc600
commit
a00b03b765
2 changed files with 15 additions and 6 deletions
|
|
@ -1048,7 +1048,12 @@ boolean CON_Responder(event_t *ev)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (capslock ^ shiftdown) // gets capslock to work because capslock is cool
|
if (key >= 'a' && key <= 'z')
|
||||||
|
{
|
||||||
|
if (capslock ^ shiftdown)
|
||||||
|
key = shiftxform[key];
|
||||||
|
}
|
||||||
|
else if (shiftdown)
|
||||||
key = shiftxform[key];
|
key = shiftxform[key];
|
||||||
|
|
||||||
// enter a char into the command prompt
|
// enter a char into the command prompt
|
||||||
|
|
|
||||||
|
|
@ -1058,10 +1058,14 @@ boolean HU_Responder(event_t *ev)
|
||||||
}
|
}
|
||||||
|
|
||||||
// use console translations
|
// use console translations
|
||||||
if (shiftdown ^ capslock)
|
|
||||||
c = shiftxform[c];
|
|
||||||
|
|
||||||
// TODO: make chat behave like the console, so that we can go back and edit stuff when we fuck up.
|
if (c >= 'a' && c <= 'z')
|
||||||
|
{
|
||||||
|
if (capslock ^ shiftdown)
|
||||||
|
c = shiftxform[c];
|
||||||
|
}
|
||||||
|
else if (shiftdown)
|
||||||
|
c = shiftxform[c];
|
||||||
|
|
||||||
// pasting. pasting is cool. chat is a bit limited, though :(
|
// pasting. pasting is cool. chat is a bit limited, though :(
|
||||||
if ((c == 'v' || c == 'V') && ctrldown)
|
if ((c == 'v' || c == 'V') && ctrldown)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue