diff options
Diffstat (limited to 'src/xterm.c')
-rw-r--r-- | src/xterm.c | 8 |
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) 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), |