two shortcuts for 3 seconds forward/backward - thx Cyberyoda1411 :)

Fix #6817
This commit is contained in:
niksedk 2023-04-12 22:05:04 +02:00
parent 85ce44f2f7
commit 65365b5213
2 changed files with 12 additions and 1 deletions

View File

@ -17034,6 +17034,15 @@ namespace Nikse.SubtitleEdit.Forms
e.SuppressKeyPress = true;
}
else if (_shortcuts.MainVideo3000MsRight == e.KeyData)
{
if (mediaPlayer.VideoPlayer != null)
{
GoBackSeconds(-3);
}
e.SuppressKeyPress = true;
}
else if (e.Modifiers == (Keys.Control | Keys.Alt | Keys.Shift) && e.KeyCode == Keys.W) // watermark
{
var enc = GetCurrentEncoding();

View File

@ -55,13 +55,14 @@ namespace Nikse.SubtitleEdit.Logic
public Keys Video500MsRight { get; set; }
public Keys Video1000MsLeft { get; set; }
public Keys Video1000MsRight { get; set; }
public Keys MainVideo3000MsLeft { get; set; }
public Keys MainVideo3000MsRight { get; set; }
public Keys Video5000MsLeft { get; set; }
public Keys Video5000MsRight { get; set; }
public Keys VideoXSMsLeft { get; set; }
public Keys VideoXSMsRight { get; set; }
public Keys VideoXLMsLeft { get; set; }
public Keys VideoXLMsRight { get; set; }
public Keys MainVideo3000MsLeft { get; set; }
public Keys MainVideoGoToStartCurrent { get; set; }
public Keys MainVideoToggleStartEndCurrent { get; set; }
public Keys MainVideoPlaySelectedLines { get; set; }
@ -304,6 +305,7 @@ namespace Nikse.SubtitleEdit.Logic
VideoXLMsLeft = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainVideoXLMsLeft);
VideoXLMsRight = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainVideoXLMsRight);
MainVideo3000MsLeft = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainVideo3000MsLeft);
MainVideo3000MsRight= UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainVideo3000MsRight);
MainVideoGoToStartCurrent = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainVideoGoToStartCurrent);
MainVideoToggleStartEndCurrent = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainVideoToggleStartEndCurrent);
MainVideoPlaySelectedLines = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainVideoPlaySelectedLines);