]> O.S.I.I.S - jp/crow.git/commitdiff
set event handled for focusable mouse down
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sat, 13 Jun 2020 06:48:18 +0000 (08:48 +0200)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sat, 13 Jun 2020 06:48:18 +0000 (08:48 +0200)
Crow/src/Widgets/Widget.cs

index a1bf5588895d847cfe9fb6ff8672300c6fd34ede..2bff9c41963241344358a0b877fd6e59d7cc3ed3 100644 (file)
@@ -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);