Minor adjustments to save shortcuts as html + setup "Ctrl+Alt+S" for "Save as..." - thx qubodup :)

Fix #6735
This commit is contained in:
niksedk 2023-03-13 19:03:22 +01:00
parent f9bfa08d29
commit e96c0d5927
2 changed files with 8 additions and 1 deletions

View File

@ -2582,6 +2582,7 @@ $HorzAlign = Center
MainFileNew = "Control+N";
MainFileOpen = "Control+O";
MainFileSave = "Control+S";
MainFileSaveAs = "Control+Alt+S";
MainEditUndo = "Control+Z";
MainEditRedo = "Control+Y";
MainEditFind = "Control+F";

View File

@ -3449,7 +3449,13 @@ namespace Nikse.SubtitleEdit.Forms.Options
foreach (TreeNode shortcutNode in node.Nodes)
{
var indexOfBracket = shortcutNode.Text.IndexOf('[');
var description = shortcutNode.Text;
var description = shortcutNode.Text
.Replace("&", "&")
.Replace("<", "&lt;")
.Replace(">", "&gt;")
.Replace("\"", "&quot;")
.Replace("{", "&#123;")
.Replace("}", "&#125;");
var shortcut = string.Empty;
if (indexOfBracket >= 0)
{