mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Bring patch from Charlie Kindle without the newline changes #381 from https://github.com/migueldeicaza/gui.cs/pull/381/files (#391)
From @tig - Fixed #380 -F9 should close menu as well as open it #381
This commit is contained in:
@@ -919,7 +919,10 @@ namespace Terminal.Gui {
|
||||
public override bool ProcessHotKey (KeyEvent kb)
|
||||
{
|
||||
if (kb.Key == Key.F9) {
|
||||
StartMenu ();
|
||||
if (isMenuClosed)
|
||||
StartMenu ();
|
||||
else
|
||||
CloseAllMenus ();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user