From 22883acd2d881db7c2530fcd6e5cee123745d278 Mon Sep 17 00:00:00 2001 From: BDisp Date: Mon, 13 Jul 2020 00:35:20 +0100 Subject: [PATCH] Fixes #759. Button mouse activates on double and triple click. --- Terminal.Gui/Views/Button.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Terminal.Gui/Views/Button.cs b/Terminal.Gui/Views/Button.cs index 3aeb0554a..3430ed239 100644 --- a/Terminal.Gui/Views/Button.cs +++ b/Terminal.Gui/Views/Button.cs @@ -218,7 +218,8 @@ namespace Terminal.Gui { return true; - if (mouseEvent.Flags == MouseFlags.Button1Clicked) { + if (mouseEvent.Flags == MouseFlags.Button1Clicked || mouseEvent.Flags == MouseFlags.Button1DoubleClicked || + mouseEvent.Flags == MouseFlags.Button1TripleClicked) { if (!HasFocus && SuperView != null) { SuperView.SetFocus (this); SetNeedsDisplay ();