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:
Tig
2025-05-09 09:04:38 -06:00
parent e3e02e9218
commit 6f6c2d3320
51 changed files with 258 additions and 226 deletions

View File

@@ -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++;
};
}