From c1f32cd81f8c4ac8e74ee40a2fd72e3a0e654ae1 Mon Sep 17 00:00:00 2001 From: "xb.teng" Date: Wed, 29 Nov 2017 23:54:25 +0800 Subject: [PATCH] [NUI] Deprecate FeedKeyEvent api, add FeedKey api instead Change-Id: I1093227fb518599b4c2a991a21ea92578bd68863 --- src/Tizen.NUI/src/public/Window.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Tizen.NUI/src/public/Window.cs b/src/Tizen.NUI/src/public/Window.cs index 8da613e..da329fa 100755 --- a/src/Tizen.NUI/src/public/Window.cs +++ b/src/Tizen.NUI/src/public/Window.cs @@ -1681,7 +1681,21 @@ namespace Tizen.NUI /// /// Feed a key-event into the window. /// + /// The key event to feed. + /// 5 + [EditorBrowsable(EditorBrowsableState.Never)] + public void FeedKey(Key keyEvent) + { + NDalicManualPINVOKE.Window_FeedKeyEvent(Key.getCPtr(keyEvent)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// + /// Feed a key-event into the window. + /// + /// The key event to feed. /// 4 + [Obsolete("Please do not use! This will be deprecated! Please use FeedKey(Key keyEvent) instead!")] public static void FeedKeyEvent(Key keyEvent) { NDalicManualPINVOKE.Window_FeedKeyEvent(Key.getCPtr(keyEvent)); -- 2.7.4