diff options
author | Jihoon Kim <jihoon48.kim@samsung.com> | 2017-04-18 16:18:10 +0900 |
---|---|---|
committer | Jihoon Kim <jihoon48.kim@samsung.com> | 2017-04-18 16:18:10 +0900 |
commit | badf7bca455afcc680cc218ded64069c99436a80 (patch) | |
tree | 3342edf59123e4d761863d9f2e6eae3f23cd8944 /src/lib/ecore_imf/ecore_imf_context.c | |
parent | 52ddf9331a6eceac4b11fade920a7c6e85fe8a38 (diff) |
ecore_imf: Added a new ecore_imf_context_keyboard_mode_get API and input_panel_event_callback type
Summary:
Applications want to know the current keyboard mode state to handle application's size manually.
So added a new ecore_imf_context_keyboard_mode_get API and input_panel_event_callback type for
keyboard mode.
Test Plan: Tested in Tizen device
Reviewers: jihoon, woohyun, id213sin
Reviewed By: jihoon
Subscribers: cedric, jsuya, z-wony, jpeg
Differential Revision: https://phab.enlightenment.org/D4790
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..961c4ae3c3 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 | } \ No newline at end of file | ||