# HG changeset patch # User reimar # Date 1364252587 0 # Node ID fab37d38b77caeb3a0aaac932d7a3c592bc52f4e # Parent 7038dec225b11d989c6288ed234440b37f31fecc Ignore XLookupString results in ASCII range. This fixes special handling of the keypad. diff -r 7038dec225b1 -r fab37d38b77c libvo/x11_common.c --- a/libvo/x11_common.c Mon Mar 25 22:54:54 2013 +0000 +++ b/libvo/x11_common.c Mon Mar 25 23:03:07 2013 +0000 @@ -879,7 +879,7 @@ key = ((keySym & 0xff00) != 0 ? ((keySym & 0x00ff) + 256) : (keySym)); - utf8 = to_utf8(buf); + utf8 = buf[0] > 0xc0 ? to_utf8(buf) : 0; if (utf8) key = 0; if (key == wsLeftCtrl || key == wsRightCtrl) { ctrl_state = Event.type == KeyPress;