diff --git a/SynNotes/Form.Designer.cs b/SynNotes/Form.Designer.cs index c1ceff8..591d0e7 100644 --- a/SynNotes/Form.Designer.cs +++ b/SynNotes/Form.Designer.cs @@ -164,6 +164,7 @@ private void InitializeComponent() this.tree.Margin = new System.Windows.Forms.Padding(0); this.tree.Name = "tree"; this.tree.OwnerDraw = true; + this.tree.SelectAllOnControlA = false; this.tree.ShowGroups = false; this.tree.ShowHeaderInAllViews = false; this.tree.Size = new System.Drawing.Size(227, 602); diff --git a/SynNotes/Form.cs b/SynNotes/Form.cs index e9ad42a..b10d562 100644 --- a/SynNotes/Form.cs +++ b/SynNotes/Form.cs @@ -15,6 +15,7 @@ using System.Xml; using System.Drawing.Drawing2D; using System.Threading.Tasks; +using System.Diagnostics; namespace SynNotes { @@ -314,6 +315,10 @@ private void Form1_KeyDown(object sender, KeyEventArgs e) { } else if (e.KeyCode == Keys.Delete && tree.Focused) deleteSelected(); else if (e.KeyCode == Keys.F7 && e.Modifiers == Keys.None) createNote(); + else if (tree.Focused && e.Modifiers == Keys.Control && e.KeyCode == Keys.A){ + scEdit.SelectAll(); + this.SelectNextControl(tree, true, true, true, true); //bc lack of scEdit.Focus; + } } #endregion hotkeys diff --git a/SynNotes/Form.resx b/SynNotes/Form.resx index bbcee38..474f4a3 100644 --- a/SynNotes/Form.resx +++ b/SynNotes/Form.resx @@ -149,7 +149,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACM - CwAAAk1TRnQBSQFMAgEBCgEAAUABAQFAAQEBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo + CwAAAk1TRnQBSQFMAgEBCgEAAUgBAQFIAQEBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo AwABQAMAATADAAEBAQABCAYAAQwYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA