Fixed issue where key event does not occur when focus is lost (#24)
authorChungryeol Lim <darkleem@naver.com>
Fri, 12 Jan 2018 04:21:55 +0000 (13:21 +0900)
committerarosis78 <35049857+arosis78@users.noreply.github.com>
Fri, 12 Jan 2018 04:21:55 +0000 (13:21 +0900)
src/ElmSharp/ElmSharp/Widget.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 397e349..fcc315d
@@ -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);
+            }
         }
 
         /// <summary>
@@ -463,7 +470,7 @@ namespace ElmSharp
             return a;
         }
 
-       /// <summary>
+        /// <summary>
         /// Sends a signal to the edje object of the widget.
         /// </summary>
         /// <param name="emission">The signal's name.</param>