mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
Fix multibyte character input.
svn path=/trunk/netsurf/; revision=5505
This commit is contained in:
parent
493fb9ed87
commit
6ce8d637d6
@ -27,6 +27,7 @@ extern "C" {
|
|||||||
#include "desktop/textinput.h"
|
#include "desktop/textinput.h"
|
||||||
#undef NDEBUG
|
#undef NDEBUG
|
||||||
#include "utils/log.h"
|
#include "utils/log.h"
|
||||||
|
#include "utils/utf8.h"
|
||||||
#include "utils/utils.h"
|
#include "utils/utils.h"
|
||||||
}
|
}
|
||||||
#include "beos/beos_window.h"
|
#include "beos/beos_window.h"
|
||||||
@ -1014,9 +1015,7 @@ void nsbeos_window_keypress_event(BView *view, gui_window *g, BMessage *event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// XXX is raw_char actually UCS ??
|
nskey = utf8_to_ucs4(bytes, numbytes);
|
||||||
nskey = (uint32_t)raw_char;
|
|
||||||
// else use convert_from_utf8()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool done = browser_window_key_press(g->bw, nskey);
|
bool done = browser_window_key_press(g->bw, nskey);
|
||||||
|
Loading…
Reference in New Issue
Block a user