gboolean
on_char_input_key_press_event(GtkWidget *widget, GdkEventKey *event, winid_t win)
{
- if(event->is_modifier)
- return FALSE; /* don't stop the event */
-
glui32 keycode = keyval_to_glk_keycode(event->keyval, win->input_request_type == INPUT_REQUEST_CHARACTER_UNICODE);
ChimaraGlk *glk = CHIMARA_GLK(gtk_widget_get_ancestor(widget, CHIMARA_TYPE_GLK));
if(str->unicode && str->ubuffer)
{
int copycount = MIN(len, str->buflen - str->mark);
- g_printerr("Attempting to copy %d units; %d units of space left in buffer\n", len, str->buflen - str->mark);
memmove(str->ubuffer + str->mark, buf, copycount * sizeof(glui32));
str->mark += copycount;
}
{
gchar *latin1 = convert_ucs4_to_latin1_binary(buf, len);
int copycount = MIN(len, str->buflen - str->mark);
- g_printerr("Attempting to copy %d units; %d units of space left in buffer\n", len, str->buflen - str->mark);
memmove(str->buffer + str->mark, latin1, copycount);
g_free(latin1);
str->mark += copycount;