mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 00:24:12 +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)
|
XLateKey (XKeyEvent * ev, int *k, int *u)
|
||||||
{
|
{
|
||||||
int key = 0;
|
int key = 0;
|
||||||
KeySym keysym;
|
KeySym keysym, shifted_keysym;
|
||||||
XComposeStatus compose;
|
XComposeStatus compose;
|
||||||
unsigned char buffer[4];
|
unsigned char buffer[4];
|
||||||
int bytes;
|
int bytes;
|
||||||
int unicode;
|
int unicode;
|
||||||
|
|
||||||
//keysym = XLookupKeysym (ev, 0);
|
keysym = XLookupKeysym (ev, 0);
|
||||||
bytes = XLookupString (ev, buffer, sizeof(buffer), &keysym, &compose);
|
bytes = XLookupString (ev, buffer, sizeof(buffer), &shifted_keysym, &compose);
|
||||||
unicode = buffer[0];
|
unicode = buffer[0];
|
||||||
|
|
||||||
switch (keysym) {
|
switch (keysym) {
|
||||||
|
|
Loading…
Reference in a new issue