Fixes #3209 - Formalize Cancellable Work Pattern and add helpers (#4092)

This commit is contained in:
Tig
2025-06-03 08:12:57 -06:00
committed by GitHub
parent 7490ac9776
commit 764a804ddd
127 changed files with 3720 additions and 1421 deletions

View File

@@ -13,7 +13,7 @@ public class TextFieldTests
Assert.Equal ("A", tf.Text);
// cancel the next keystroke
tf.TextChanging += (s, e) => e.Cancel = e.NewValue == "AB";
tf.TextChanging += (s, e) => e.Handled = e.Result == "AB";
tf.NewKeyDownEvent (Key.B.WithShift);
// B was canceled so should just be A