Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
71578d4f
Commit
71578d4f
authored
Jan 19, 2006
by
Kenichi Handa
Browse files
(handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
parent
b0aea09e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
14 deletions
+35
-14
src/ChangeLog
src/ChangeLog
+4
-0
src/xterm.c
src/xterm.c
+31
-14
No files found.
src/ChangeLog
View file @
71578d4f
2006-01-19 Kenichi Handa <handa@m17n.org>
* xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
2006-01-17 Richard M. Stallman <rms@gnu.org>
* frame.c (x_frame_get_and_record_arg): Don't record Qunbound
...
...
src/xterm.c
View file @
71578d4f
...
...
@@ -6242,23 +6242,40 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
}
/* Keysyms directly mapped to supported Unicode characters. */
if ((keysym >= 0x01000
1
00 && keysym <= 0x010033ff)
if ((keysym >= 0x01000
0
00 && keysym <= 0x010033ff)
|| (keysym >= 0x0100e000 && keysym <= 0x0100ffff))
{
int code, charset_id, c1, c2;
if (keysym < 0x01002500)
charset_id = charset_mule_unicode_0100_24ff,
code = (keysym & 0xFFFF) - 0x100;
else if (keysym < 0x0100e000)
charset_id = charset_mule_unicode_2500_33ff,
code = (keysym & 0xFFFF) - 0x2500;
int code = keysym & 0xFFFF, charset_id, c1, c2;
if (code < 0x80)
{
inev.ie.kind = ASCII_KEYSTROKE_EVENT;
inev.ie.code = code;
}
else if (code < 0x100)
{
if (code < 0xA0)
charset_id = CHARSET_8_BIT_CONTROL;
else
charset_id = charset_latin_iso8859_1;
inev.ie.kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT;
inev.ie.code = MAKE_CHAR (charset_id, code, 0);
}
else
charset_id = charset_mule_unicode_e000_ffff,
code = (keysym & 0xFFFF) - 0xe000;
c1 = (code / 96) + 32, c2 = (code % 96) + 32;
inev.ie.kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT;
inev.ie.code = MAKE_CHAR (charset_id, c1, c2);
{
if (code < 0x2500)
charset_id = charset_mule_unicode_0100_24ff,
code -= 0x100;
else if (code < 0xE000)
charset_id = charset_mule_unicode_2500_33ff,
code -= 0x2500;
else
charset_id = charset_mule_unicode_e000_ffff,
code -= 0xE000;
c1 = (code / 96) + 32, c2 = (code % 96) + 32;
inev.ie.kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT;
inev.ie.code = MAKE_CHAR (charset_id, c1, c2);
}
goto done_keysym;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment