summaryrefslogtreecommitdiff
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
parent4c35b0f8c1a47aa7a0cdfca8d0f684f0c0730d14 (diff)
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
71 efl.ui.Config.Exit(); 71 efl.ui.Config.Exit();
72 }; 72 };
73 hbox.DoPack(ebutton); 73 hbox.DoPack(ebutton);
74 // Set focus on this widget and show the focus highlight
75 ebutton.SetFocusHighlightEnabled(true);
76 }); 74 });
77 75
76 // Show the focus highlight
77 win.SetFocusHighlightEnabled(true);
78
78 // Start the EFL main loop 79 // Start the EFL main loop
79 efl.ui.Config.Run(); 80 efl.ui.Config.Run();
80 81