|
@@ -109,9 +109,7 @@ public sealed class ContextMenu : IDisposable
|
|
_menuBar?.Dispose ();
|
|
_menuBar?.Dispose ();
|
|
_menuBar = null;
|
|
_menuBar = null;
|
|
IsShow = false;
|
|
IsShow = false;
|
|
-
|
|
|
|
- Application.KeyBindings.Remove (Key);
|
|
|
|
-
|
|
|
|
|
|
+ `
|
|
if (_container is { })
|
|
if (_container is { })
|
|
{
|
|
{
|
|
_container.Closing -= Container_Closing;
|
|
_container.Closing -= Container_Closing;
|
|
@@ -253,8 +251,6 @@ public sealed class ContextMenu : IDisposable
|
|
_menuBar._isContextMenuLoading = true;
|
|
_menuBar._isContextMenuLoading = true;
|
|
_menuBar.MenuAllClosed += MenuBar_MenuAllClosed;
|
|
_menuBar.MenuAllClosed += MenuBar_MenuAllClosed;
|
|
|
|
|
|
- Application.KeyBindings.Add (Key, _menuBar, Command.Cancel);
|
|
|
|
-
|
|
|
|
_menuBar.BeginInit ();
|
|
_menuBar.BeginInit ();
|
|
_menuBar.EndInit ();
|
|
_menuBar.EndInit ();
|
|
IsShow = true;
|
|
IsShow = true;
|