mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixes #986. Comparing with ShortcutHelper.GetModifiersKey in the demo.cs
This commit is contained in:
@@ -689,12 +689,14 @@ static class Demo {
|
||||
|
||||
private static void Win_KeyPress (View.KeyEventEventArgs e)
|
||||
{
|
||||
if ((e.KeyEvent.Key & (Key.CtrlMask | Key.T)) != 0) {
|
||||
switch (ShortcutHelper.GetModifiersKey (e.KeyEvent)) {
|
||||
case Key.CtrlMask | Key.T:
|
||||
if (menu.IsMenuOpen)
|
||||
menu.CloseMenu ();
|
||||
else
|
||||
menu.OpenMenu ();
|
||||
e.Handled = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user