mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Merge pull request #6269 from Flitskikker/feature/ocr-ctrl-enter-use-once
Implement Ctrl+Enter for "use once", remove duplicate Escape clause
This commit is contained in:
commit
12d97707b4
@ -170,16 +170,17 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
if (e.Modifiers == Keys.Control)
|
||||
{
|
||||
UseOnce = true;
|
||||
}
|
||||
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
else if (e.KeyCode == Keys.Escape)
|
||||
{
|
||||
DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
else if (e.KeyCode == Keys.Escape)
|
||||
{
|
||||
DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
else if (e.Modifiers == Keys.Control && e.KeyCode == Keys.I)
|
||||
{
|
||||
checkBoxItalic.Checked = !checkBoxItalic.Checked;
|
||||
|
Loading…
Reference in New Issue
Block a user