Fixed TextView not handling space

This commit is contained in:
Tig
2024-10-07 10:53:39 -04:00
parent 2b483378a9
commit 5006e0036b
2 changed files with 15 additions and 0 deletions

View File

@@ -8534,6 +8534,19 @@ line.
void Accept (object sender, CommandEventArgs e) { accepted++; }
}
[Fact]
public void Space_Key_Types_Space ()
{
var view = new TextView ()
{
};
view.NewKeyDownEvent (Key.Space);
Assert.Equal (" ", view.Text);
}
[Theory]
[InlineData (false, false, 1, 1)]
[InlineData (false, true, 1, 0)]