# HG changeset patch # User Kenichi Handa # Date 1137656471 0 # Node ID fdbfce97e78c126ee2db01e6147ce14a4170fc55 # Parent f1df126ec7de01658fe044dfd99b137927674d92 (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF. diff -r f1df126ec7de -r fdbfce97e78c src/xterm.c --- a/src/xterm.c Thu Jan 19 07:20:52 2006 +0000 +++ b/src/xterm.c Thu Jan 19 07:41:11 2006 +0000 @@ -6248,9 +6248,12 @@ } /* Keysyms directly mapped to Unicode characters. */ - if (keysym >= 0x01000100 && keysym <= 0x0110FFFF) + if (keysym >= 0x01000000 && keysym <= 0x0110FFFF) { - inev.ie.kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT; + if (keysym < 0x01000080) + inev.ie.kind = ASCII_KEYSTROKE_EVENT; + else + inev.ie.kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT; inev.ie.code = keysym & 0xFFFFFF; goto done_keysym; }