summaryrefslogtreecommitdiff
path: root/beos
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-08 00:08:48 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-08 00:08:48 +0000
commit6ce8d637d611b666385403a0c9c27b548309fd45 (patch)
treee5ca5060b2d44848b3d99dddded148a5bb8a716c /beos
parent493fb9ed87ddb038df641fd5ed23701d6edf1895 (diff)
downloadnetsurf-6ce8d637d611b666385403a0c9c27b548309fd45.tar.gz
netsurf-6ce8d637d611b666385403a0c9c27b548309fd45.tar.bz2
Fix multibyte character input.
svn path=/trunk/netsurf/; revision=5505
Diffstat (limited to 'beos')
-rw-r--r--beos/beos_window.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/beos/beos_window.cpp b/beos/beos_window.cpp
index a0eccad30..3befd342a 100644
--- a/beos/beos_window.cpp
+++ b/beos/beos_window.cpp
@@ -27,6 +27,7 @@ extern "C" {
#include "desktop/textinput.h"
#undef NDEBUG
#include "utils/log.h"
+#include "utils/utf8.h"
#include "utils/utils.h"
}
#include "beos/beos_window.h"
@@ -1014,9 +1015,7 @@ void nsbeos_window_keypress_event(BView *view, gui_window *g, BMessage *event)
}
}
} else {
- // XXX is raw_char actually UCS ??
- nskey = (uint32_t)raw_char;
- // else use convert_from_utf8()
+ nskey = utf8_to_ucs4(bytes, numbytes);
}
bool done = browser_window_key_press(g->bw, nskey);