From: Chungryeol Lim Date: Fri, 12 Jan 2018 04:21:55 +0000 (+0900) Subject: Fixed issue where key event does not occur when focus is lost (#24) X-Git-Tag: 4.0.1-preview1-00067~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37471a21e2ec797240308b7b678998c584066418;hp=65416a96c2ed833cf1f83bca51a2ef660a0d926b;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Fixed issue where key event does not occur when focus is lost (#24) --- diff --git a/src/ElmSharp/ElmSharp/Widget.cs b/src/ElmSharp/ElmSharp/Widget.cs old mode 100755 new mode 100644 index 397e349..fcc315d --- a/src/ElmSharp/ElmSharp/Widget.cs +++ b/src/ElmSharp/ElmSharp/Widget.cs @@ -294,6 +294,13 @@ namespace ElmSharp public void SetFocus(bool isFocus) { Interop.Elementary.elm_object_focus_set(RealHandle, isFocus); + + // Temporary code due to focus issue (will be removed at Tizen 5.0) + if (this is Window) + { + if (isFocus && !Interop.Evas.evas_object_focus_get(RealHandle)) + Interop.Evas.evas_object_focus_set(RealHandle, true); + } } /// @@ -463,7 +470,7 @@ namespace ElmSharp return a; } - /// + /// /// Sends a signal to the edje object of the widget. /// /// The signal's name.