mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 13:24:09 +02:00
Avoid deselecting watch items on right-click menu popup
This commit is contained in:
parent
f1a275d6ef
commit
16ed9ff8cf
2 changed files with 18 additions and 1 deletions
|
@ -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]
|
[CallingConvention(.Stdcall),CLink]
|
||||||
static extern void IDEHelper_ProgramStart();
|
static extern void IDEHelper_ProgramStart();
|
||||||
[CallingConvention(.Stdcall),CLink]
|
[CallingConvention(.Stdcall),CLink]
|
||||||
|
|
|
@ -4117,7 +4117,7 @@ namespace IDE.ui
|
||||||
|
|
||||||
CheckClearDirtyWatches();
|
CheckClearDirtyWatches();
|
||||||
|
|
||||||
if ((mDeselectOnFocusLost) && (!HasFocus) && (mListView.mFindWidget == null))
|
if ((mDeselectOnFocusLost) && (!HasFocus) && (mListView.mFindWidget == null) && (!gApp.MenuHasFocus))
|
||||||
mListView.GetRoot().SelectItemExclusively(null);
|
mListView.GetRoot().SelectItemExclusively(null);
|
||||||
|
|
||||||
//mListView.m
|
//mListView.m
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue