From bec65569cea920df6f529ccf7811eb5fd1bd8499 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Sat, 13 Jun 2020 08:48:18 +0200 Subject: [PATCH] set event handled for focusable mouse down --- Crow/src/Widgets/Widget.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.47.3