mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix shift changing the key name
This commit is contained in:
parent
5536883f71
commit
b61999750b
1 changed files with 3 additions and 3 deletions
|
@ -91,14 +91,14 @@ static void
|
|||
XLateKey (XKeyEvent * ev, int *k, int *u)
|
||||
{
|
||||
int key = 0;
|
||||
KeySym keysym;
|
||||
KeySym keysym, shifted_keysym;
|
||||
XComposeStatus compose;
|
||||
unsigned char buffer[4];
|
||||
int bytes;
|
||||
int unicode;
|
||||
|
||||
//keysym = XLookupKeysym (ev, 0);
|
||||
bytes = XLookupString (ev, buffer, sizeof(buffer), &keysym, &compose);
|
||||
keysym = XLookupKeysym (ev, 0);
|
||||
bytes = XLookupString (ev, buffer, sizeof(buffer), &shifted_keysym, &compose);
|
||||
unicode = buffer[0];
|
||||
|
||||
switch (keysym) {
|
||||
|
|
Loading…
Reference in a new issue