mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 21:34:11 +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 (tabButton.mIsActive)
|
||||||
{
|
{
|
||||||
// If this succeeds then tabbUtton.mIsActive will be false, otherwise we do the 'nextTab' logic below
|
// 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;
|
TabbedView.TabButton nextTab = null;
|
||||||
|
|
|
@ -120,8 +120,15 @@ namespace IDE.ui
|
||||||
|
|
||||||
protected override bool WantsUnfocus()
|
protected override bool WantsUnfocus()
|
||||||
{
|
{
|
||||||
if ((mWidgetWindow != null) && (mWidgetWindow.mOverWidget is PanelSplitter))
|
if (mWidgetWindow != null)
|
||||||
|
{
|
||||||
|
if (mWidgetWindow.mOverWidget is PanelSplitter)
|
||||||
return false;
|
return false;
|
||||||
|
if (mWidgetWindow.mOverWidget is TabbedView.TabButton)
|
||||||
|
return false;
|
||||||
|
if (mWidgetWindow.mOverWidget is DarkTabbedView.DarkTabButtonClose)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return base.WantsUnfocus();
|
return base.WantsUnfocus();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue