summaryrefslogtreecommitdiff
path: root/src/wkb-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wkb-main.c')
-rw-r--r--src/wkb-main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wkb-main.c b/src/wkb-main.c
index d3b1b19..9509cd4 100644
--- a/src/wkb-main.c
+++ b/src/wkb-main.c
@@ -177,7 +177,10 @@ _cb_wkb_on_key_down(void *data, Evas_Object *obj, const char *emission EINA_UNUS
else if (strcmp(key, "backspace") == 0)
{
if (strlen(wkb->preedit_str) == 0)
+ {
wl_input_method_context_delete_surrounding_text(wkb->im_ctx, -1, 1);
+ wl_input_method_context_commit_string(wkb->im_ctx, wkb->serial, "");
+ }
else
{
wkb->preedit_str[strlen(wkb->preedit_str) - 1] = '\0';
@@ -189,7 +192,7 @@ _cb_wkb_on_key_down(void *data, Evas_Object *obj, const char *emission EINA_UNUS
else if (strcmp(key, "enter") == 0)
{
_wkb_commit_preedit_str(wkb);
- wl_input_method_context_keysym(wkb->im_ctx, wkb->serial, time,
+ wl_input_method_context_keysym(wkb->im_ctx, wkb->serial, 0,
XKB_KEY_Return, WL_KEYBOARD_KEY_STATE_PRESSED,
0);
goto end;