From: xb.teng Date: Wed, 29 Nov 2017 15:54:25 +0000 (+0800) Subject: [NUI] Deprecate FeedKeyEvent api, add FeedKey api instead X-Git-Tag: 4.0.1-preview1-00032~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1f32cd81f8c4ac8e74ee40a2fd72e3a0e654ae1;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Deprecate FeedKeyEvent api, add FeedKey api instead Change-Id: I1093227fb518599b4c2a991a21ea92578bd68863 --- 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));