mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Fixed some IDE issues
Fixed some issues related to creating new projects and workspace Added 'Refresh' option to project Fixed auto-include refresh Fixed folder rename Fixed EOF issue involving DbgModule string table
This commit is contained in:
parent
8a02874b51
commit
0ce6e44523
14 changed files with 374 additions and 163 deletions
|
@ -811,19 +811,29 @@ namespace Beefy.widgets
|
|||
|
||||
public static bool HandleTab(int dir, List<Widget> tabWidgets)
|
||||
{
|
||||
Widget wantFocus = null;
|
||||
|
||||
if (tabWidgets.IsEmpty)
|
||||
return false;
|
||||
|
||||
for (int32 idx = 0; idx < tabWidgets.Count; idx++)
|
||||
{
|
||||
Widget widget = tabWidgets[idx];
|
||||
if (widget.mHasFocus)
|
||||
{
|
||||
var nextWidget = tabWidgets[(idx + tabWidgets.Count + dir) % tabWidgets.Count];
|
||||
nextWidget.SetFocus();
|
||||
if (var editWidget = nextWidget as EditWidget)
|
||||
editWidget.mEditWidgetContent.SelectAll();
|
||||
return true;
|
||||
wantFocus = nextWidget;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
if (wantFocus == null)
|
||||
wantFocus = tabWidgets[0];
|
||||
|
||||
wantFocus.SetFocus();
|
||||
if (var editWidget = wantFocus as EditWidget)
|
||||
editWidget.mEditWidgetContent.SelectAll();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue