mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
code cleanup
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
namespace Terminal.Gui;
|
||||
|
||||
/// <summary>Mouse flags reported in <see cref="Terminal.Gui.MouseEventArgs"/>.</summary>
|
||||
/// <summary>Mouse flags reported in <see cref="MouseEventArgs"/>.</summary>
|
||||
/// <remarks>They just happen to map to the ncurses ones.</remarks>
|
||||
[Flags]
|
||||
public enum MouseFlags
|
||||
|
||||
@@ -469,10 +469,7 @@ public partial class View // Mouse APIs
|
||||
{
|
||||
mouseEvent.Handled = false;
|
||||
|
||||
if (mouseEvent.Flags.HasFlag (MouseFlags.Button1Pressed)
|
||||
|| mouseEvent.Flags.HasFlag (MouseFlags.Button2Pressed)
|
||||
|| mouseEvent.Flags.HasFlag (MouseFlags.Button3Pressed)
|
||||
|| mouseEvent.Flags.HasFlag (MouseFlags.Button4Pressed))
|
||||
if (mouseEvent.IsPressed)
|
||||
{
|
||||
// The first time we get pressed event, grab the mouse and set focus
|
||||
if (Application.MouseGrabView != this)
|
||||
|
||||
Reference in New Issue
Block a user