changeset 90273:fdbfce97e78c

(handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
author Kenichi Handa <handa@m17n.org>
date Thu, 19 Jan 2006 07:41:11 +0000
parents f1df126ec7de
children b2784209ad3c
files src/xterm.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	    }