1
0
Fork 0
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:
Brian Fiete 2019-09-05 08:18:24 -07:00
parent 8a02874b51
commit 0ce6e44523
14 changed files with 374 additions and 163 deletions

View file

@ -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;
}
}
}