From: sungwook79.park Date: Tue, 5 Dec 2017 07:54:34 +0000 (+0900) Subject: [InputMethod] Add logic to set whether IME is called from dotnet X-Git-Tag: 5.0.0-preview1-00422^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c8e74e8ace6f558cc9c7b3c433d3e1d6a1a0135;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [InputMethod] Add logic to set whether IME is called from dotnet Change-Id: I6ac3a2e7b0167398be32e981ea3ba6a76f2e4deb Signed-off-by: sungwook79.park --- 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 0e23e98..e59afb3 100755 --- a/src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/InputMethodEditor.cs +++ b/src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/InputMethodEditor.cs @@ -1704,6 +1704,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) {