diff --git a/Terminal.Gui/App/RunState.cs b/Terminal.Gui/App/RunState.cs
index e1ad8bb0f..a9c3017d3 100644
--- a/Terminal.Gui/App/RunState.cs
+++ b/Terminal.Gui/App/RunState.cs
@@ -44,15 +44,16 @@ public class RunState : IDisposable
}
#if DEBUG_IDISPOSABLE
+#pragma warning disable CS0419 // Ambiguous reference in cref attribute
///
- /// Gets whether was called on this RunState or not.
+ /// Gets whether was called on this RunState or not.
/// For debug purposes to verify objects are being disposed properly.
/// Only valid when DEBUG_IDISPOSABLE is defined.
///
public bool WasDisposed { get; private set; }
///
- /// Gets the number of times was called on this object.
+ /// Gets the number of times was called on this object.
/// For debug purposes to verify objects are being disposed properly.
/// Only valid when DEBUG_IDISPOSABLE is defined.
///
@@ -71,5 +72,6 @@ public class RunState : IDisposable
{
Instances.Add (this);
}
+#pragma warning restore CS0419 // Ambiguous reference in cref attribute
#endif
}
diff --git a/Terminal.Gui/ViewBase/View.cs b/Terminal.Gui/ViewBase/View.cs
index 720f0d428..e875b2243 100644
--- a/Terminal.Gui/ViewBase/View.cs
+++ b/Terminal.Gui/ViewBase/View.cs
@@ -520,6 +520,7 @@ public partial class View : IDisposable, ISupportInitializeNotification
#endregion
#if DEBUG_IDISPOSABLE
+#pragma warning disable CS0419 // Ambiguous reference in cref attribute
///
/// Gets or sets whether failure to appropriately call Dispose() on a View will result in an Assert.
/// The default is .
@@ -529,15 +530,16 @@ public partial class View : IDisposable, ISupportInitializeNotification
///
public static bool EnableDebugIDisposableAsserts { get; set; } = true;
+
///
- /// Gets whether was called on this view or not.
+ /// Gets whether was called on this view or not.
/// For debug purposes to verify objects are being disposed properly.
/// Only valid when DEBUG_IDISPOSABLE is defined.
///
public bool WasDisposed { get; private set; }
///
- /// Gets the number of times was called on this view.
+ /// Gets the number of times was called on this view.
/// For debug purposes to verify objects are being disposed properly.
/// Only valid when DEBUG_IDISPOSABLE is defined.
///
@@ -550,5 +552,6 @@ public partial class View : IDisposable, ISupportInitializeNotification
/// Only valid when DEBUG_IDISPOSABLE is defined.
///
public static ConcurrentBag Instances { get; private set; } = [];
+#pragma warning restore CS0419 // Ambiguous reference in cref attribute
#endif
}
diff --git a/Terminal.Gui/Views/CharMap/CharMap.cs b/Terminal.Gui/Views/CharMap/CharMap.cs
index 683ee0601..f7db26002 100644
--- a/Terminal.Gui/Views/CharMap/CharMap.cs
+++ b/Terminal.Gui/Views/CharMap/CharMap.cs
@@ -681,14 +681,20 @@ public class CharMap : View, IDesignable
{
CopyGlyph ();
dlg!.RequestStop ();
+ a.Handled = true;
};
copyCodepoint.Accepting += (s, a) =>
{
CopyCodePoint ();
dlg!.RequestStop ();
+ a.Handled = true;
};
- cancel.Accepting += (s, a) => dlg!.RequestStop ();
+ cancel.Accepting += (s, a) =>
+ {
+ dlg!.RequestStop ();
+ a.Handled = true;
+ };
var rune = (Rune)SelectedCodePoint;
var label = new Label { Text = "IsAscii: ", X = 0, Y = 0 };
@@ -765,9 +771,6 @@ public class CharMap : View, IDesignable
Strings.btnOk
);
}
-
- // BUGBUG: This is a workaround for some weird ScrollView related mouse grab bug
- Application.MouseGrabHandler.GrabMouse (this);
}
#endregion Details Dialog