mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-29 01:07:58 +01:00
Fixed curses key bug
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user