mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Fixed TextView not handling space
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user