summaryrefslogtreecommitdiff
path: root/src/lib/ecore_imf/ecore_imf_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_imf/ecore_imf_context.c')
-rw-r--r--src/lib/ecore_imf/ecore_imf_context.c16
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
1394EAPI Ecore_IMF_Input_Panel_Keyboard_Mode
1395ecore_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}