mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user