changeset 90235:4b0820d67bba

(handle_one_xevent): Handle keysyms directly mapped to Unicode characters.
author Kenichi Handa <handa@m17n.org>
date Thu, 06 Oct 2005 02:00:35 +0000
parents b1c1fc853d2f
children 7871ecd1281b
files src/xterm.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri Sep 30 11:43:45 2005 +0000
+++ b/src/xterm.c	Thu Oct 06 02:00:35 2005 +0000
@@ -6310,6 +6310,14 @@
 	      goto done_keysym;
 	    }
 
+	  /* Keysyms directly mapped to Unicode characters.  */
+	  if (keysym >= 0x01000100 && keysym <= 0x0110FFFF)
+	    {
+	      inev.ie.kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT;
+	      inev.ie.code = keysym & 0xFFFFFF;
+	      goto done_keysym;
+	    }
+
 	  /* Now non-ASCII.  */
 	  if (HASH_TABLE_P (Vx_keysym_table)
 	      && (NATNUMP (c = Fgethash (make_number (keysym),