From d4f061d4e8f608fd8139b3fbc3a6dfd6e1b7a5b6 Mon Sep 17 00:00:00 2001 From: BDisp Date: Sun, 24 Nov 2024 14:03:03 +0000 Subject: [PATCH] Enable wheel to allow focus. --- Terminal.Gui/Views/TabView/TabRowView.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Terminal.Gui/Views/TabView/TabRowView.cs b/Terminal.Gui/Views/TabView/TabRowView.cs index 3490615b7..b3b99ae25 100644 --- a/Terminal.Gui/Views/TabView/TabRowView.cs +++ b/Terminal.Gui/Views/TabView/TabRowView.cs @@ -59,6 +59,11 @@ internal class TabRowView : View } } + if (me.IsWheel && !HasFocus && CanFocus) + { + SetFocus (); + } + if (!me.IsSingleDoubleOrTripleClicked) { return false;