fix shift changing the key name

This commit is contained in:
Bill Currie 2001-08-17 19:47:51 +00:00
parent 5536883f71
commit b61999750b

View file

@ -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) {