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:
parent
0301552d2f
commit
10da44e341
2 changed files with 10 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue