Make split at cursor work in original textbox - thx OmrSi :)

Work on #3278
This commit is contained in:
Nikolaj Olsson 2019-03-05 15:10:23 +01:00
parent d47f8a49d0
commit 60fe6a152b

View File

@ -8495,7 +8495,7 @@ namespace Nikse.SubtitleEdit.Forms
{
newParagraph.CalculateFrameNumbersFromTimeCodes(CurrentFrameRate);
newParagraph.CalculateTimeCodesFromFrameNumbers(CurrentFrameRate);
}
}
if (_networkSession != null)
{
@ -22253,6 +22253,16 @@ namespace Nikse.SubtitleEdit.Forms
e.SuppressKeyPress = true;
}
}
else if (_mainTextBoxSplitAtCursor == e.KeyData && Configuration.Settings.General.AllowEditOfOriginalSubtitle)
{
ToolStripMenuItemSplitTextAtCursorClick(null, null);
e.SuppressKeyPress = true;
}
else if (_mainTextBoxSplitAtCursorAndVideoPos == e.KeyData && Configuration.Settings.General.AllowEditOfOriginalSubtitle)
{
toolStripMenuItemSplitViaWaveform_Click(null, null);
e.SuppressKeyPress = true;
}
// last key down in text
_lastTextKeyDownTicks = DateTime.UtcNow.Ticks;