mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 23:56:05 +02:00
Editor fixes
This commit is contained in:
parent
5c320fa9c9
commit
1155bd9600
4 changed files with 24 additions and 9 deletions
|
@ -2314,6 +2314,11 @@ namespace IDE
|
|||
widget.RemoveSelf();
|
||||
}
|
||||
|
||||
WithSourceViewPanels(scope (sourceViewPanel) =>
|
||||
{
|
||||
sourceViewPanel.Dispose();
|
||||
});
|
||||
|
||||
if (!mRunningTestScript)
|
||||
{
|
||||
mActiveDocumentsTabbedView = null;
|
||||
|
@ -5712,14 +5717,20 @@ namespace IDE
|
|||
{
|
||||
let sewc = editWidget.mEditWidgetContent as SourceEditWidgetContent;
|
||||
if (sewc != null)
|
||||
return sewc;
|
||||
{
|
||||
if (sewc.mEditWidget.mHasFocus)
|
||||
return sewc;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var activeTextPanel = GetActivePanel() as TextPanel;
|
||||
if (activeTextPanel != null)
|
||||
{
|
||||
return activeTextPanel.EditWidget.mEditWidgetContent as SourceEditWidgetContent;
|
||||
let sewc = activeTextPanel.EditWidget.mEditWidgetContent as SourceEditWidgetContent;
|
||||
if ((sewc != null) && (sewc.mEditWidget.mHasFocus))
|
||||
return sewc;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue