mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-31 23:00:57 +00:00
Fix capslock being wonky.
This commit is contained in:
parent
b09019dc4a
commit
40b4d63620
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…
Reference in a new issue