Fixes #3071 & #3079. Key cast and static props are not correct (#3089)

* Removed char->Key cast. Added Key(char)

* Re-added char->key cast. Added unit tests

* Fixed standard keys to always return new instead of being readonly

* Re-fixed WindowsDriver to report shift/alt/ctrl as key/down/up

* Re-fixed WindowsDriver to report shift/alt/ctrl as key/down/up

* Adds string constructor to Key + tests.

* Simplified Key json

* Added string/Key cast operators.
This commit is contained in:
Tig
2023-12-27 15:50:37 -07:00
committed by GitHub
parent a7209bcd88
commit 80ef4b5e19
13 changed files with 881 additions and 717 deletions

View File

@@ -26,7 +26,7 @@ public class AppendAutocompleteTests {
tf.PositionCursor ();
TestHelpers.AssertDriverContentsAre ("", output);
tf.NewKeyDownEvent ('f');
tf.NewKeyDownEvent (new ('f'));
tf.Draw ();
tf.PositionCursor ();