mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 17:57:57 +01:00
fixed unit tests
This commit is contained in:
@@ -30,12 +30,17 @@ public class MenuBarv2 : Menuv2, IDesignable
|
||||
AddCommand (Command.HotKey,
|
||||
() =>
|
||||
{
|
||||
if (RaiseHandlingHotKey () is true)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (HideActiveItem ())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (SubViews.FirstOrDefault (sv => sv is MenuBarItemv2 { PopoverMenu: { } }) is MenuBarItemv2 { } first)
|
||||
if (GetSubViews<MenuBarItemv2> ().FirstOrDefault (mbi => mbi.PopoverMenu is { }) is { } first)
|
||||
{
|
||||
_active = true;
|
||||
ShowPopover (first);
|
||||
|
||||
Reference in New Issue
Block a user