1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-11 04:52:21 +02:00

Fixed keyboard focus when navigating workspace files

This commit is contained in:
Brian Fiete 2020-09-17 06:11:39 -07:00
parent 0301552d2f
commit 10da44e341
2 changed files with 10 additions and 3 deletions

View file

@ -120,8 +120,15 @@ namespace IDE.ui
protected override bool WantsUnfocus()
{
if ((mWidgetWindow != null) && (mWidgetWindow.mOverWidget is PanelSplitter))
return false;
if (mWidgetWindow != null)
{
if (mWidgetWindow.mOverWidget is PanelSplitter)
return false;
if (mWidgetWindow.mOverWidget is TabbedView.TabButton)
return false;
if (mWidgetWindow.mOverWidget is DarkTabbedView.DarkTabButtonClose)
return false;
}
return base.WantsUnfocus();
}