IME input: Show the pre-edit text while the IME is in progress

Text is show in reverse video
This commit is contained in:
Kovid Goyal
2018-07-12 10:21:43 +05:30
parent 1a1aa2d6aa
commit 5b1eaa741c
4 changed files with 94 additions and 1 deletions

View File

@@ -131,6 +131,7 @@ on_key_input(int key, int scancode, int action, int mods, const char* text, int
switch(state) {
case 1: // update pre-edit text
update_ime_position(global_state.callback_os_window, w, screen);
screen_draw_overlay_text(screen, text);
return;
case 2: // commit text
if (text && *text) {