fix shift changing the key name
This commit is contained in:
parent
5536883f71
commit
b61999750b
|
@ -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 New Issue