From 22b079d2b9d1a9b713e847b1ff1d7e1ff0086ec3 Mon Sep 17 00:00:00 2001 From: "sungwook79.park" Date: Tue, 5 Dec 2017 16:54:34 +0900 Subject: [PATCH] [InputMethod] Add logic to set whether IME is called from dotnet Change-Id: I6ac3a2e7b0167398be32e981ea3ba6a76f2e4deb Signed-off-by: sungwook79.park --- src/Tizen.Uix.InputMethod/Interop/Interop.InputMethod.cs | 3 +++ src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/InputMethodEditor.cs | 1 + 2 files changed, 4 insertions(+) diff --git a/src/Tizen.Uix.InputMethod/Interop/Interop.InputMethod.cs b/src/Tizen.Uix.InputMethod/Interop/Interop.InputMethod.cs index 1ec40cf..79eaee8 100755 --- a/src/Tizen.Uix.InputMethod/Interop/Interop.InputMethod.cs +++ b/src/Tizen.Uix.InputMethod/Interop/Interop.InputMethod.cs @@ -197,6 +197,9 @@ internal static partial class Interop [DllImport(Libraries.InputMethod, EntryPoint = "ime_finalize")] internal static extern ErrorCode ImeFinalize(); + [DllImport(Libraries.InputMethod, EntryPoint = "ime_set_dotnet_flag")] + internal static extern ErrorCode ImeSetDotnetFlag(bool set); + [DllImport(Libraries.InputMethod, EntryPoint = "ime_set_size")] internal static extern ErrorCode ImeSetSize(int portraitWidth, int portraitHeight, int landscapeWidth, int landscapeHeight); diff --git a/src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/InputMethodEditor.cs b/src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/InputMethodEditor.cs index bcd453b..91f90a1 100755 --- a/src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/InputMethodEditor.cs +++ b/src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/InputMethodEditor.cs @@ -1703,6 +1703,7 @@ namespace Tizen.Uix.InputMethod _imeCallbackStructGCHandle._imeCallbackStruct.hide = _hide; _imeCallbackStructGCHandle._imeCallbackStruct.show = _show; + ImeSetDotnetFlag(true); ErrorCode error = ImeRun(ref _imeCallbackStructGCHandle._imeCallbackStruct, IntPtr.Zero); if (error != ErrorCode.None) { -- 2.7.4