From e96c0d59273c64591f201659a0374a77a139fe25 Mon Sep 17 00:00:00 2001 From: niksedk Date: Mon, 13 Mar 2023 19:03:22 +0100 Subject: [PATCH] Minor adjustments to save shortcuts as html + setup "Ctrl+Alt+S" for "Save as..." - thx qubodup :) Fix #6735 --- src/libse/Common/Settings.cs | 1 + src/ui/Forms/Options/Settings.cs | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/libse/Common/Settings.cs b/src/libse/Common/Settings.cs index 8198a7d25..1d2654a74 100644 --- a/src/libse/Common/Settings.cs +++ b/src/libse/Common/Settings.cs @@ -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"; diff --git a/src/ui/Forms/Options/Settings.cs b/src/ui/Forms/Options/Settings.cs index dd9deb8c8..28e8be3d4 100644 --- a/src/ui/Forms/Options/Settings.cs +++ b/src/ui/Forms/Options/Settings.cs @@ -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("<", "<") + .Replace(">", ">") + .Replace("\"", """) + .Replace("{", "{") + .Replace("}", "}"); var shortcut = string.Empty; if (indexOfBracket >= 0) {