aboutsummaryrefslogtreecommitdiffstats
path: root/reference
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-09-19 10:51:57 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2018-09-19 10:54:29 -0300
commit764dee4cd30e19933031e445124402f3beb57e48 (patch)
tree89a85cca2529d0d795b432befae8a78691ab4bf2 /reference
parentcsharp: revamp focus example (diff)
downloadexamples-764dee4cd30e19933031e445124402f3beb57e48.tar.gz
csharp focus: properly enable focus highlight
Summary: I think this is the intended way to enable the focus highlight on the whole window. The previous approach enabled the highlight but did not move the focus, by the way. Reviewers: vitor.sousa Reviewed By: vitor.sousa Differential Revision: https://phab.enlightenment.org/D7073
Diffstat (limited to 'reference')
-rw-r--r--reference/csharp/ui/src/focus_main.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/reference/csharp/ui/src/focus_main.cs b/reference/csharp/ui/src/focus_main.cs
index 354f7959..f5a87a50 100644
--- a/reference/csharp/ui/src/focus_main.cs
+++ b/reference/csharp/ui/src/focus_main.cs
@@ -71,10 +71,11 @@ public class Example
efl.ui.Config.Exit();
};
hbox.DoPack(ebutton);
- // Set focus on this widget and show the focus highlight
- ebutton.SetFocusHighlightEnabled(true);
});
+ // Show the focus highlight
+ win.SetFocusHighlightEnabled(true);
+
// Start the EFL main loop
efl.ui.Config.Run();