mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
[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:
parent
2f3895f088
commit
0a55a2b16e
@ -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 */) {
|
||||
|
Loading…
Reference in New Issue
Block a user