aboutsummaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-06-13 08:48:18 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-06-13 08:48:18 +0200
commitbec65569cea920df6f529ccf7811eb5fd1bd8499 (patch)
treeaa2f961b4f785216e0df7bb5b7fd8d7052bf6f08
parent12ebb45ce26748e415f01c12c5c76b6918484c2f (diff)
set event handled for focusable mouse down
-rw-r--r--Crow/src/Widgets/Widget.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Crow/src/Widgets/Widget.cs b/Crow/src/Widgets/Widget.cs
index a1bf5588..2bff9c41 100644
--- a/Crow/src/Widgets/Widget.cs
+++ b/Crow/src/Widgets/Widget.cs
@@ -1885,8 +1885,10 @@ namespace Crow
#if DEBUG_FOCUS
Debug.WriteLine("MOUSE DOWN => " + this.ToString());
#endif
- if (Focusable)
+ if (Focusable) {
IFace.FocusedWidget = this;
+ e.Handled = true;
+ }
if (e.Button == MouseButton.Right && contextCommands != null) {
IFace.ShowContextMenu (this);