diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2005-04-16 19:33:21 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2005-04-16 19:33:21 +0000 |
commit | 0a55a2b16e711a0ad4301ec28b72501a1160a9e4 (patch) | |
tree | 6485d38d8c17d397db731120732590492ecb68bd /riscos/window.c | |
parent | 2f3895f0882e696598665cefcc0468de4cec0bff (diff) | |
download | netsurf-0a55a2b16e711a0ad4301ec28b72501a1160a9e4.tar.gz netsurf-0a55a2b16e711a0ad4301ec28b72501a1160a9e4.tar.bz2 |
[project @ 2005-04-16 19:33:21 by jmb]
Fix silliness with use of control characters
svn path=/import/netsurf/; revision=1653
Diffstat (limited to 'riscos/window.c')
-rw-r--r-- | riscos/window.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/riscos/window.c b/riscos/window.c index 33b5993a1..f31c112ea 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -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 */) { |