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:
@@ -28,7 +28,7 @@ public class ViewCommandTests
|
||||
btnA.Accepting += (s, e) =>
|
||||
{
|
||||
aAcceptedCount++;
|
||||
e.Cancel = aCancelAccepting;
|
||||
e.Handled = aCancelAccepting;
|
||||
};
|
||||
|
||||
var btnB = new Button ()
|
||||
@@ -40,7 +40,7 @@ public class ViewCommandTests
|
||||
btnB.Accepting += (s, e) =>
|
||||
{
|
||||
bAcceptedCount++;
|
||||
e.Cancel = bCancelAccepting;
|
||||
e.Handled = bCancelAccepting;
|
||||
};
|
||||
w.Add (btnA, btnB);
|
||||
|
||||
@@ -96,7 +96,7 @@ public class ViewCommandTests
|
||||
w.Accepting += (s, e) =>
|
||||
{
|
||||
wAcceptedCount++;
|
||||
e.Cancel = wCancelAccepting;
|
||||
e.Handled = wCancelAccepting;
|
||||
};
|
||||
|
||||
int btnAcceptedCount = 0;
|
||||
@@ -112,7 +112,7 @@ public class ViewCommandTests
|
||||
btn.Accepting += (s, e) =>
|
||||
{
|
||||
btnAcceptedCount++;
|
||||
e.Cancel = btnCancelAccepting;
|
||||
e.Handled = btnCancelAccepting;
|
||||
};
|
||||
|
||||
w.Add (btn);
|
||||
|
||||
Reference in New Issue
Block a user