1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42: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

@ -6427,7 +6427,7 @@ namespace IDE
if (tabButton.mIsActive)
{
// If this succeeds then tabbUtton.mIsActive will be false, otherwise we do the 'nextTab' logic below
ShowRecentFile(0);
ShowRecentFile(0, hasFocus);
}
TabbedView.TabButton nextTab = null;

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();
}