Better debug output for pre-edit text
This commit is contained in:
parent
ddd8209c45
commit
1bb6540b64
@ -137,13 +137,13 @@ on_key_input(int key, int scancode, int action, int mods, const char* text, int
|
|||||||
case 1: // update pre-edit text
|
case 1: // update pre-edit text
|
||||||
update_ime_position(global_state.callback_os_window, w, screen);
|
update_ime_position(global_state.callback_os_window, w, screen);
|
||||||
screen_draw_overlay_text(screen, text);
|
screen_draw_overlay_text(screen, text);
|
||||||
debug("updated pre-edit text\n");
|
debug("updated pre-edit text: '%s'\n", text);
|
||||||
return;
|
return;
|
||||||
case 2: // commit text
|
case 2: // commit text
|
||||||
if (text && *text) {
|
if (text && *text) {
|
||||||
schedule_write_to_child(w->id, text, strlen(text));
|
schedule_write_to_child(w->id, text, strlen(text));
|
||||||
}
|
debug("committed pre-edit text: %s\n", text);
|
||||||
debug("committed pre-edit text\n");
|
} else debug("committed pre-edit text: (null)\n");
|
||||||
return;
|
return;
|
||||||
case 0:
|
case 0:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user