Fixed curses key bug

This commit is contained in:
Tig
2024-05-07 11:02:17 -06:00
parent a1249198bd
commit 6759ce7c9f

View File

@@ -610,6 +610,12 @@ internal class CursesDriver : ConsoleDriver
k = KeyCode.Enter;
}
// Strip the KeyCode.Space flag off if it's set
if (k != KeyCode.Space && k.HasFlag (KeyCode.Space))
{
k &= ~KeyCode.Space;
}
OnKeyDown (new Key (k));
OnKeyUp (new Key (k));
}