[project @ 2005-04-16 19:33:21 by jmb]

Fix silliness with use of control characters

svn path=/import/netsurf/; revision=1653
This commit is contained in:
John Mark Bell 2005-04-16 19:33:21 +00:00
parent 2f3895f088
commit 0a55a2b16e

View File

@ -1624,7 +1624,10 @@ bool ro_gui_window_keypress(struct gui_window *g, int key, bool toolbar)
else if (c == 398) c = 31; /* Down */
else if (c == 399) c = 30; /* Up */
if (c < 256) {
if (alphabet != 111 /* UTF8 */ && ucstable != NULL)
if ((wchar_t)key > 256)
/* do nothing */;
else if (alphabet != 111 /* UTF8 */ &&
ucstable != NULL)
/* read UCS4 value out of table */
c = ucstable[c] == -1 ? 0xFFFD : ucstable[c];
else if (alphabet == 111 /* UTF8 */) {