diff options
author | Jihoon Kim <jihoon48.kim@samsung.com> | 2017-04-17 16:53:50 +0900 |
---|---|---|
committer | Jihoon Kim <jihoon48.kim@samsung.com> | 2017-04-17 16:53:50 +0900 |
commit | 4533eef59b3b84c28ed6cd5814d753291df3f6f1 (patch) | |
tree | 6e2c95635f5c2df94de213cf8d62ed1dee668bdd /src/lib/ecore_imf/ecore_imf_context.c | |
parent | 2ea487286984cf54a0db9cb65c1949b470199a6e (diff) |
ecore_imf: Add ecore_imf_context_keyboard_mode_get API
Summary:
When the keyboard mode state is changed, the keyboard_mode_event_cb will be called, too.
But there is no way to get keyboard mode manually.
Test Plan: Tested in Tizen device
Reviewers: jihoon, woohyun, id213sin
Reviewed By: jihoon
Subscribers: jpeg, z-wony, jsuya, cedric
Differential Revision: https://phab.enlightenment.org/D4786
Diffstat (limited to 'src/lib/ecore_imf/ecore_imf_context.c')
-rw-r--r-- | src/lib/ecore_imf/ecore_imf_context.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/ecore_imf/ecore_imf_context.c b/src/lib/ecore_imf/ecore_imf_context.c index d6fd854035..a7289ba700 100644 --- a/src/lib/ecore_imf/ecore_imf_context.c +++ b/src/lib/ecore_imf/ecore_imf_context.c | |||
@@ -1391,3 +1391,19 @@ ecore_imf_context_bidi_direction_get(Ecore_IMF_Context *ctx) | |||
1391 | return ctx->bidi_direction; | 1391 | return ctx->bidi_direction; |
1392 | } | 1392 | } |
1393 | 1393 | ||
1394 | EAPI Ecore_IMF_Input_Panel_Keyboard_Mode | ||
1395 | ecore_imf_context_keyboard_mode_get(Ecore_IMF_Context *ctx) | ||
1396 | { | ||
1397 | Ecore_IMF_Input_Panel_Keyboard_Mode mode = ECORE_IMF_INPUT_PANEL_SW_KEYBOARD_MODE; | ||
1398 | if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT)) | ||
1399 | { | ||
1400 | ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT, | ||
1401 | "ecore_imf_context_keyboard_mode_get"); | ||
1402 | return ECORE_IMF_INPUT_PANEL_SW_KEYBOARD_MODE; | ||
1403 | } | ||
1404 | |||
1405 | if (ctx->klass->keyboard_mode_get) | ||
1406 | mode = ctx->klass->keyboard_mode_get(ctx); | ||
1407 | |||
1408 | return mode; | ||
1409 | } | ||