mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +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:
@@ -513,7 +513,7 @@ public class ButtonTests (ITestOutputHelper output)
|
||||
void ButtonAccept (object sender, CommandEventArgs e)
|
||||
{
|
||||
acceptInvoked = true;
|
||||
e.Cancel = true;
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -616,7 +616,7 @@ public class ButtonTests (ITestOutputHelper output)
|
||||
button.Accepting += (s, e) =>
|
||||
{
|
||||
acceptedCount++;
|
||||
e.Cancel = true;
|
||||
e.Handled = true;
|
||||
};
|
||||
|
||||
me = new ();
|
||||
@@ -661,7 +661,7 @@ public class ButtonTests (ITestOutputHelper output)
|
||||
button.Accepting += (s, e) =>
|
||||
{
|
||||
acceptedCount++;
|
||||
e.Cancel = true;
|
||||
e.Handled = true;
|
||||
};
|
||||
|
||||
var selectingCount = 0;
|
||||
@@ -669,7 +669,7 @@ public class ButtonTests (ITestOutputHelper output)
|
||||
button.Selecting += (s, e) =>
|
||||
{
|
||||
selectingCount++;
|
||||
e.Cancel = true;
|
||||
e.Handled = true;
|
||||
};
|
||||
|
||||
me.Flags = pressed;
|
||||
|
||||
Reference in New Issue
Block a user