mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Make split at cursor work in original textbox - thx OmrSi :)
Work on #3278
This commit is contained in:
parent
d47f8a49d0
commit
60fe6a152b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user