diff options
author | DRC <dcommander@users.sourceforge.net> | 2011-07-28 09:23:00 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2011-07-28 09:23:00 +0000 |
commit | 685f17ec83083ad4ada1181110419f616f1ba6fb (patch) | |
tree | 69189c9c52f132754c2f1d02d34e0dad857afeb0 /common/fltk/src/xutf8 | |
parent | 638314d56d2cdb27de411de99e62811ce5abb464 (diff) | |
download | tigervnc-685f17ec83083ad4ada1181110419f616f1ba6fb.tar.gz tigervnc-685f17ec83083ad4ada1181110419f616f1ba6fb.zip |
Apply our FLTK extensions
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4605 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/fltk/src/xutf8')
-rw-r--r-- | common/fltk/src/xutf8/imKStoUCS.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/fltk/src/xutf8/imKStoUCS.c b/common/fltk/src/xutf8/imKStoUCS.c index 0af9a806..802b005e 100644 --- a/common/fltk/src/xutf8/imKStoUCS.c +++ b/common/fltk/src/xutf8/imKStoUCS.c @@ -266,6 +266,12 @@ static unsigned short const keysym_to_unicode_20a0_20ac[] = { 0x20a8, 0x20a9, 0x20aa, 0x20ab, 0x20ac /* 0x20a8-0x20af */ }; +static unsigned short const keysym_to_unicode_fe50_fe60[] = { + 0x0300, 0x0301, 0x0302, 0x0303, 0x0304, 0x0306, 0x0307, 0x0308, /* 0xfe50-0xfe57 */ + 0x030a, 0x030b, 0x030c, 0x0327, 0x0328, 0x1da5, 0x3099, 0x309a, /* 0xfe58-0xfe5f */ + 0x0323 /* 0xfe60-0xfe67 */ +}; + unsigned int KeySymToUcs4(KeySym keysym) { @@ -315,6 +321,8 @@ KeySymToUcs4(KeySym keysym) return keysym_to_unicode_1e9f_1eff[keysym - 0x1e9f]; else if (keysym > 0x209f && keysym < 0x20ad) return keysym_to_unicode_20a0_20ac[keysym - 0x20a0]; + else if (keysym > 0xfe4f && keysym < 0xfe61) + return keysym_to_unicode_fe50_fe60[keysym - 0xfe50]; else return 0; } |