Fix changed event and reformat in Views.

This commit is contained in:
BDisp
2023-03-17 17:11:16 +00:00
parent 663a92dd97
commit 836d868057
3 changed files with 4 additions and 4 deletions

View File

@@ -92,7 +92,7 @@ namespace Terminal.Gui {
/// <returns><c>true</c>, if the event was handled, <c>false</c> otherwise.</returns>
public override bool OnMouseEvent (MouseEvent mouseEvent)
{
MouseEventArgs args = new MouseEventArgs (mouseEvent);
MouseEventEventArgs args = new MouseEventEventArgs (mouseEvent);
if (OnMouseClick (args))
return true;
if (MouseEvent (mouseEvent))

View File

@@ -149,7 +149,7 @@ namespace Terminal.Gui {
// }
//}
void ContentBottomRightCorner_MouseClick (object sender, MouseEventArgs me)
void ContentBottomRightCorner_MouseClick (object sender, MouseEventEventArgs me)
{
if (me.MouseEvent.Flags == MouseFlags.WheeledDown || me.MouseEvent.Flags == MouseFlags.WheeledUp
|| me.MouseEvent.Flags == MouseFlags.WheeledRight || me.MouseEvent.Flags == MouseFlags.WheeledLeft) {

View File

@@ -237,14 +237,14 @@ namespace Terminal.Gui {
SetNeedsLayout ();
}
void View_MouseLeave (object sender, MouseEventArgs e)
void View_MouseLeave (object sender, MouseEventEventArgs e)
{
if (Application.MouseGrabView != null && Application.MouseGrabView != vertical && Application.MouseGrabView != horizontal) {
Application.UngrabMouse ();
}
}
void View_MouseEnter (object sender, MouseEventArgs e)
void View_MouseEnter (object sender, MouseEventEventArgs e)
{
Application.GrabMouse (this);
}