provide Editor-specific SelectAll (placeholder until we can figure out how to do it by Selections)
This commit is contained in:
parent
33577a0353
commit
34764cfe0c
@ -912,5 +912,13 @@ namespace UniversalEditor.UserInterface
|
||||
{
|
||||
get { return GetDocumentPropertiesSettingsProviders().Length > 0; }
|
||||
}
|
||||
|
||||
public virtual void SelectAll()
|
||||
{
|
||||
/*
|
||||
Selection[] sel = editor.GetAvailableSelections();
|
||||
editor.Selections.AddRange(sel);
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -883,6 +883,12 @@ namespace UniversalEditor.UserInterface
|
||||
}
|
||||
}
|
||||
});
|
||||
Application.Instance.AttachCommandEventHandler("EditSelectAll", delegate (object sender, EventArgs e)
|
||||
{
|
||||
Editor editor = LastWindow.GetCurrentEditor();
|
||||
if (editor == null) return;
|
||||
editor.SelectAll();
|
||||
});
|
||||
Application.Instance.AttachCommandEventHandler("EditBatchFindReplace", delegate (object sender, EventArgs e)
|
||||
{
|
||||
if (LastWindow == null) return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user