aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2005-10-06 02:00:35 +0000
committerKenichi Handa2005-10-06 02:00:35 +0000
commite5e40bff37bcbca50729d98a6b8cc3e8f2bc99e1 (patch)
treeb926673d40aeb3869d2eb46457fc0519457cc6bb /src
parentc4e8cde8c6cea5ab85abbac10626bd5c1fe5a6af (diff)
downloademacs-e5e40bff37bcbca50729d98a6b8cc3e8f2bc99e1.tar.gz
emacs-e5e40bff37bcbca50729d98a6b8cc3e8f2bc99e1.zip
(handle_one_xevent): Handle keysyms directly mapped to
Unicode characters.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 655627abded..3b94e3b871c 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6310,6 +6310,14 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
6310 goto done_keysym; 6310 goto done_keysym;
6311 } 6311 }
6312 6312
6313 /* Keysyms directly mapped to Unicode characters. */
6314 if (keysym >= 0x01000100 && keysym <= 0x0110FFFF)
6315 {
6316 inev.ie.kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT;
6317 inev.ie.code = keysym & 0xFFFFFF;
6318 goto done_keysym;
6319 }
6320
6313 /* Now non-ASCII. */ 6321 /* Now non-ASCII. */
6314 if (HASH_TABLE_P (Vx_keysym_table) 6322 if (HASH_TABLE_P (Vx_keysym_table)
6315 && (NATNUMP (c = Fgethash (make_number (keysym), 6323 && (NATNUMP (c = Fgethash (make_number (keysym),