Fix shortcut "Column, Delete text" - thx OmrSi :)

Fix #3003
This commit is contained in:
Nikolaj Olsson 2018-08-08 19:46:22 +02:00
parent 3dbaf930de
commit 48c5e2d21e
7 changed files with 14 additions and 1 deletions

View File

@ -1980,6 +1980,7 @@ can edit in same subtitle file (collaboration)</Information>
<ShortcutIsAlreadyDefinedX>Shortcut already defined: {0}</ShortcutIsAlreadyDefinedX>
<ToggleTranslationAndOriginalInPreviews>Toggle translation and original in video/audio preview</ToggleTranslationAndOriginalInPreviews>
<ListViewColumnDelete>Column, delete text</ListViewColumnDelete>
<ListViewColumnDeleteAndShiftUp>Column, delete text and shift up</ListViewColumnDeleteAndShiftUp>
<ListViewColumnInsert>Column, insert text</ListViewColumnInsert>
<ListViewColumnPaste>Column, paste</ListViewColumnPaste>
<ListViewColumnTextUp>Column, text up</ListViewColumnTextUp>

View File

@ -2270,6 +2270,7 @@ can edit in same subtitle file (collaboration)",
ShortcutIsAlreadyDefinedX = "Shortcut already defined: {0}",
ToggleTranslationAndOriginalInPreviews = "Toggle translation and original in video/audio preview",
ListViewColumnDelete = "Column, delete text",
ListViewColumnDeleteAndShiftUp = "Column, delete text and shift up",
ListViewColumnInsert = "Column, insert text",
ListViewColumnPaste = "Column, paste",
ListViewColumnTextUp = "Column, text up",

View File

@ -5377,6 +5377,9 @@ namespace Nikse.SubtitleEdit.Core
case "Settings/ListViewColumnDelete":
language.Settings.ListViewColumnDelete = reader.Value;
break;
case "Settings/ListViewColumnDeleteAndShiftUp":
language.Settings.ListViewColumnDeleteAndShiftUp = reader.Value;
break;
case "Settings/ListViewColumnInsert":
language.Settings.ListViewColumnInsert = reader.Value;
break;

View File

@ -2149,6 +2149,7 @@
public string ShortcutIsAlreadyDefinedX { get; set; }
public string ToggleTranslationAndOriginalInPreviews { get; set; }
public string ListViewColumnDelete { get; set; }
public string ListViewColumnDeleteAndShiftUp { get; set; }
public string ListViewColumnInsert { get; set; }
public string ListViewColumnPaste { get; set; }
public string ListViewColumnTextUp { get; set; }

View File

@ -1043,6 +1043,7 @@ namespace Nikse.SubtitleEdit.Core
public string MainListViewCopyTextFromOriginalToCurrent { get; set; }
public string MainListViewAutoDuration { get; set; }
public string MainListViewColumnDeleteText { get; set; }
public string MainListViewColumnDeleteTextAndShiftUp { get; set; }
public string MainListViewColumnInsertText { get; set; }
public string MainListViewColumnPaste { get; set; }
public string MainListViewColumnTextUp { get; set; }
@ -3080,6 +3081,9 @@ namespace Nikse.SubtitleEdit.Core
subNode = node.SelectSingleNode("MainListViewColumnDeleteText");
if (subNode != null)
settings.Shortcuts.MainListViewColumnDeleteText = subNode.InnerText;
subNode = node.SelectSingleNode("MainListViewColumnDeleteTextAndShiftUp");
if (subNode != null)
settings.Shortcuts.MainListViewColumnDeleteTextAndShiftUp = subNode.InnerText;
subNode = node.SelectSingleNode("MainListViewColumnInsertText");
if (subNode != null)
settings.Shortcuts.MainListViewColumnInsertText = subNode.InnerText;
@ -3976,6 +3980,7 @@ namespace Nikse.SubtitleEdit.Core
textWriter.WriteElementString("MainListViewCopyTextFromOriginalToCurrent", settings.Shortcuts.MainListViewCopyTextFromOriginalToCurrent);
textWriter.WriteElementString("MainListViewAutoDuration", settings.Shortcuts.MainListViewAutoDuration);
textWriter.WriteElementString("MainListViewColumnDeleteText", settings.Shortcuts.MainListViewColumnDeleteText);
textWriter.WriteElementString("MainListViewColumnDeleteTextAndShiftUp", settings.Shortcuts.MainListViewColumnDeleteTextAndShiftUp);
textWriter.WriteElementString("MainListViewColumnInsertText", settings.Shortcuts.MainListViewColumnInsertText);
textWriter.WriteElementString("MainListViewColumnPaste", settings.Shortcuts.MainListViewColumnPaste);
textWriter.WriteElementString("MainListViewColumnTextUp", settings.Shortcuts.MainListViewColumnTextUp);

View File

@ -16667,7 +16667,8 @@ namespace Nikse.SubtitleEdit.Forms
_mainEditReverseStartAndEndingForRTL = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainEditReverseStartAndEndingForRTL);
_mainListViewCopyText = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainListViewCopyText);
copyOriginalTextToCurrentToolStripMenuItem.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainListViewCopyTextFromOriginalToCurrent);
toolStripMenuItemColumnDeleteText.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainListViewColumnDeleteText);
columnDeleteTextOnlyToolStripMenuItem.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainListViewColumnDeleteText);
toolStripMenuItemColumnDeleteText.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainListViewColumnDeleteTextAndShiftUp);
ShiftTextCellsDownToolStripMenuItem.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainListViewColumnInsertText);
toolStripMenuItemPasteSpecial.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainListViewColumnPaste);
moveTextUpToolStripMenuItem.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainListViewColumnTextUp);

View File

@ -824,6 +824,7 @@ namespace Nikse.SubtitleEdit.Forms
AddNode(listViewNode, language.CopyTextOnlyFromOriginalToCurrent, nameof(Configuration.Settings.Shortcuts.MainListViewCopyTextFromOriginalToCurrent), true);
AddNode(listViewNode, language.AutoDurationSelectedLines, nameof(Configuration.Settings.Shortcuts.MainListViewAutoDuration));
AddNode(listViewNode, language.ListViewColumnDelete, nameof(Configuration.Settings.Shortcuts.MainListViewColumnDeleteText), true);
AddNode(listViewNode, language.ListViewColumnDeleteAndShiftUp, nameof(Configuration.Settings.Shortcuts.MainListViewColumnDeleteTextAndShiftUp), true);
AddNode(listViewNode, language.ListViewColumnInsert, nameof(Configuration.Settings.Shortcuts.MainListViewColumnInsertText), true);
AddNode(listViewNode, language.ListViewColumnPaste, nameof(Configuration.Settings.Shortcuts.MainListViewColumnPaste), true);
AddNode(listViewNode, language.ListViewColumnTextUp, nameof(Configuration.Settings.Shortcuts.MainListViewColumnTextUp), true);