From 2d1ef37a1370e4860709776d76fb479f7fd85ada Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Fri, 5 Oct 2018 13:11:29 -0700 Subject: [PATCH] Switch some hotkeys around Ctrl+L -> edit label Ctrl+; -> edit comment (looks funny in menu) Ctrl+M -> edit long comment Ctrl+N -> edit note (was "new project") Ctrl+W -> nothing (was "close project") (issue #11) --- SourceGen/AppForms/ProjectView.Designer.cs | 6 ++++-- SourceGen/RuntimeData/Help/editors.html | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/SourceGen/AppForms/ProjectView.Designer.cs b/SourceGen/AppForms/ProjectView.Designer.cs index 52b43e8..949677b 100644 --- a/SourceGen/AppForms/ProjectView.Designer.cs +++ b/SourceGen/AppForms/ProjectView.Designer.cs @@ -238,7 +238,6 @@ namespace SourceGen.AppForms // newToolStripMenuItem // this.newToolStripMenuItem.Name = "newToolStripMenuItem"; - this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N))); this.newToolStripMenuItem.Size = new System.Drawing.Size(208, 22); this.newToolStripMenuItem.Text = "New"; this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click); @@ -269,7 +268,6 @@ namespace SourceGen.AppForms // closeToolStripMenuItem // this.closeToolStripMenuItem.Name = "closeToolStripMenuItem"; - this.closeToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.W))); this.closeToolStripMenuItem.Size = new System.Drawing.Size(208, 22); this.closeToolStripMenuItem.Text = "Close"; this.closeToolStripMenuItem.Click += new System.EventHandler(this.closeToolStripMenuItem_Click); @@ -491,6 +489,7 @@ namespace SourceGen.AppForms // editLabelToolStripMenuItem // this.editLabelToolStripMenuItem.Name = "editLabelToolStripMenuItem"; + this.editLabelToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.L))); this.editLabelToolStripMenuItem.Size = new System.Drawing.Size(255, 22); this.editLabelToolStripMenuItem.Text = "Edit Label..."; this.editLabelToolStripMenuItem.Click += new System.EventHandler(this.EditLabel_Click); @@ -512,6 +511,7 @@ namespace SourceGen.AppForms // editCommentToolStripMenuItem // this.editCommentToolStripMenuItem.Name = "editCommentToolStripMenuItem"; + this.editCommentToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Oem1))); this.editCommentToolStripMenuItem.Size = new System.Drawing.Size(255, 22); this.editCommentToolStripMenuItem.Text = "Edit Comment..."; this.editCommentToolStripMenuItem.Click += new System.EventHandler(this.EditComment_Click); @@ -519,6 +519,7 @@ namespace SourceGen.AppForms // editLongCommentToolStripMenuItem // this.editLongCommentToolStripMenuItem.Name = "editLongCommentToolStripMenuItem"; + this.editLongCommentToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.M))); this.editLongCommentToolStripMenuItem.Size = new System.Drawing.Size(255, 22); this.editLongCommentToolStripMenuItem.Text = "Edit Long Comment..."; this.editLongCommentToolStripMenuItem.Click += new System.EventHandler(this.EditLongComment_Click); @@ -526,6 +527,7 @@ namespace SourceGen.AppForms // editNoteToolStripMenuItem // this.editNoteToolStripMenuItem.Name = "editNoteToolStripMenuItem"; + this.editNoteToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N))); this.editNoteToolStripMenuItem.Size = new System.Drawing.Size(255, 22); this.editNoteToolStripMenuItem.Text = "Edit Note..."; this.editNoteToolStripMenuItem.Click += new System.EventHandler(this.EditNote_Click); diff --git a/SourceGen/RuntimeData/Help/editors.html b/SourceGen/RuntimeData/Help/editors.html index 9749b68..aad4aeb 100644 --- a/SourceGen/RuntimeData/Help/editors.html +++ b/SourceGen/RuntimeData/Help/editors.html @@ -162,6 +162,9 @@ CODE LDA LABEL+2

Edit Comment

+

NOTE: the shortcut for Edit Comment is Ctrl+; (semicolon). For some +reason Windows likes to show this as "Ctrl+Oem1".

+

Enter an end-of-line (EOL) comment, or leave the text field blank to delete it. EOL comments may be placed on instruction and data lines, but not on assembler directives.