diff --git a/Libraries/UniversalEditor.UserInterface/Editor.cs b/Libraries/UniversalEditor.UserInterface/Editor.cs index 2b9ec00f..57da9ecc 100644 --- a/Libraries/UniversalEditor.UserInterface/Editor.cs +++ b/Libraries/UniversalEditor.UserInterface/Editor.cs @@ -912,5 +912,13 @@ namespace UniversalEditor.UserInterface { get { return GetDocumentPropertiesSettingsProviders().Length > 0; } } + + public virtual void SelectAll() + { + /* + Selection[] sel = editor.GetAvailableSelections(); + editor.Selections.AddRange(sel); + */ + } } } diff --git a/Libraries/UniversalEditor.UserInterface/EditorApplication.cs b/Libraries/UniversalEditor.UserInterface/EditorApplication.cs index e2c3f779..bfdc2e8d 100644 --- a/Libraries/UniversalEditor.UserInterface/EditorApplication.cs +++ b/Libraries/UniversalEditor.UserInterface/EditorApplication.cs @@ -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;