1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Avoid deselecting watch items on right-click menu popup

This commit is contained in:
Brian Fiete 2024-04-27 07:24:36 -04:00
parent f1a275d6ef
commit 16ed9ff8cf
2 changed files with 18 additions and 1 deletions

View file

@ -568,6 +568,23 @@ namespace IDE
}
}
public bool MenuHasFocus
{
get
{
for (var window in mWindows)
{
var widgetWindow = window as WidgetWindow;
if ((widgetWindow != null) && (widgetWindow.mHasFocus))
{
if (widgetWindow.mRootWidget is MenuContainer)
return true;
}
}
return false;
}
}
[CallingConvention(.Stdcall),CLink]
static extern void IDEHelper_ProgramStart();
[CallingConvention(.Stdcall),CLink]

View file

@ -4117,7 +4117,7 @@ namespace IDE.ui
CheckClearDirtyWatches();
if ((mDeselectOnFocusLost) && (!HasFocus) && (mListView.mFindWidget == null))
if ((mDeselectOnFocusLost) && (!HasFocus) && (mListView.mFindWidget == null) && (!gApp.MenuHasFocus))
mListView.GetRoot().SelectItemExclusively(null);
//mListView.m