From 37471a21e2ec797240308b7b678998c584066418 Mon Sep 17 00:00:00 2001 From: Chungryeol Lim Date: Fri, 12 Jan 2018 13:21:55 +0900 Subject: [PATCH] Fixed issue where key event does not occur when focus is lost (#24) --- src/ElmSharp/ElmSharp/Widget.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) mode change 100755 => 100644 src/ElmSharp/ElmSharp/Widget.cs 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. -- 2.7.4