summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Zhao <juan.j.zhao@intel.com>2013-09-24 12:55:31 +0000
committerEduardo Lima (Etrunko) <eduardo.lima@intel.com>2013-09-26 18:05:59 -0300
commit98ccb367aec71fef4e7247d4bdca9dfe09b40bd2 (patch)
tree36a0d541de6de4d5c02954eb2c14dcafd74678fa
parent5e43a70ed9ad567df75a1212a602093267cd22a4 (diff)
downloadweekeyboard-98ccb367aec71fef4e7247d4bdca9dfe09b40bd2.tar.gz
weekeyboard-98ccb367aec71fef4e7247d4bdca9dfe09b40bd2.tar.bz2
weekeyboard-98ccb367aec71fef4e7247d4bdca9dfe09b40bd2.zip
Fix handling of "Enter" key press
Change-Id: I491f31c7a0090a3e9cc490d4274cf6bbe6f09492 Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
-rw-r--r--src/wkb-main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wkb-main.c b/src/wkb-main.c
index 953b283..d3b1b19 100644
--- a/src/wkb-main.c
+++ b/src/wkb-main.c
@@ -189,7 +189,9 @@ _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, XKB_KEY_Return, key_state, mod_mask); */
+ wl_input_method_context_keysym(wkb->im_ctx, wkb->serial, time,
+ XKB_KEY_Return, WL_KEYBOARD_KEY_STATE_PRESSED,
+ 0);
goto end;
}
else if (strcmp(key, "space") == 0)