mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
Make auto-translate shortcut work in waveform - thx rRobis :)
Fix #8280
This commit is contained in:
parent
32ec68ccb7
commit
bff037fc8a
@ -779,6 +779,15 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
SetColor(ColorTranslator.ToHtml(Configuration.Settings.Tools.Color8));
|
SetColor(ColorTranslator.ToHtml(Configuration.Settings.Tools.Color8));
|
||||||
e.SuppressKeyPress = true;
|
e.SuppressKeyPress = true;
|
||||||
}
|
}
|
||||||
|
else if (e.KeyData == _shortcuts.MainAutoTranslateSelectedLines)
|
||||||
|
{
|
||||||
|
e.SuppressKeyPress = true;
|
||||||
|
TaskDelayHelper.RunDelayed(TimeSpan.FromMilliseconds(1), () =>
|
||||||
|
{
|
||||||
|
var onlySelectedLines = true;
|
||||||
|
MakeAutoTranslate(onlySelectedLines);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitializeWaveformZoomDropdown()
|
private void InitializeWaveformZoomDropdown()
|
||||||
|
@ -194,6 +194,7 @@ namespace Nikse.SubtitleEdit.Logic
|
|||||||
public Keys MainInsertAfter { get; set; }
|
public Keys MainInsertAfter { get; set; }
|
||||||
public Keys MainInsertBefore { get; set; }
|
public Keys MainInsertBefore { get; set; }
|
||||||
public Keys MainTextBoxAutoBreak { get; set; }
|
public Keys MainTextBoxAutoBreak { get; set; }
|
||||||
|
public Keys MainAutoTranslateSelectedLines { get; set; }
|
||||||
public Keys MainTextBoxRecord { get; set; }
|
public Keys MainTextBoxRecord { get; set; }
|
||||||
public Keys MainTextBoxUnbreak { get; set; }
|
public Keys MainTextBoxUnbreak { get; set; }
|
||||||
public Keys MainTextBoxUnbreakNoSpace { get; set; }
|
public Keys MainTextBoxUnbreakNoSpace { get; set; }
|
||||||
@ -513,6 +514,7 @@ namespace Nikse.SubtitleEdit.Logic
|
|||||||
MainInsertAfter = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainInsertAfter);
|
MainInsertAfter = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainInsertAfter);
|
||||||
MainInsertBefore = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainInsertBefore);
|
MainInsertBefore = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainInsertBefore);
|
||||||
MainTextBoxAutoBreak = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainTextBoxAutoBreak);
|
MainTextBoxAutoBreak = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainTextBoxAutoBreak);
|
||||||
|
MainAutoTranslateSelectedLines = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainTranslateAutoSelectedLines);
|
||||||
MainTextBoxBreakAtCursorPosition = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainTextBoxBreakAtPosition);
|
MainTextBoxBreakAtCursorPosition = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainTextBoxBreakAtPosition);
|
||||||
MainTextBoxBreakAtCursorPositionAndGoToNext = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainTextBoxBreakAtPositionAndGoToNext);
|
MainTextBoxBreakAtCursorPositionAndGoToNext = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainTextBoxBreakAtPositionAndGoToNext);
|
||||||
MainTextBoxRecord = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainTextBoxRecord);
|
MainTextBoxRecord = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainTextBoxRecord);
|
||||||
|
Loading…
Reference in New Issue
Block a user