mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixes #4023 - Changes CommandEventArgs to be based on HandledEventArgs instead of CancelEventArgs (#4054)
* touching publish.yml * CancelEventArgs->HandledEventArgs * Fixed Handled issues
This commit is contained in:
@@ -49,7 +49,7 @@ public class ViewCommandTests
|
||||
void ViewOnAccept (object sender, CommandEventArgs e)
|
||||
{
|
||||
acceptInvoked = true;
|
||||
e.Cancel = true;
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ public class ViewCommandTests
|
||||
void ViewOnSelect (object sender, CommandEventArgs e)
|
||||
{
|
||||
selectingInvoked = true;
|
||||
e.Cancel = true;
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -276,25 +276,25 @@ public class ViewCommandTests
|
||||
|
||||
Accepting += (s, a) =>
|
||||
{
|
||||
a.Cancel = HandleAccepted;
|
||||
a.Handled = HandleAccepted;
|
||||
AcceptedCount++;
|
||||
};
|
||||
|
||||
HandlingHotKey += (s, a) =>
|
||||
{
|
||||
a.Cancel = HandleHandlingHotKey;
|
||||
a.Handled = HandleHandlingHotKey;
|
||||
HandlingHotKeyCount++;
|
||||
};
|
||||
|
||||
Selecting += (s, a) =>
|
||||
{
|
||||
a.Cancel = HandleSelecting;
|
||||
a.Handled = HandleSelecting;
|
||||
SelectingCount++;
|
||||
};
|
||||
|
||||
CommandNotBound += (s, a) =>
|
||||
{
|
||||
a.Cancel = HandleCommandNotBound;
|
||||
a.Handled = HandleCommandNotBound;
|
||||
CommandNotBoundCount++;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@ public class TextFieldTests
|
||||
void TextViewAccept (object sender, CommandEventArgs e)
|
||||
{
|
||||
tfAcceptedInvoked = true;
|
||||
e.Cancel = handle;
|
||||
e.Handled = handle;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user