mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Set focus on most relevant button in AutoTranslate + Remove-text-for-HI - thx Bob :)
This commit is contained in:
parent
6a927b8fe5
commit
6747d12173
@ -349,6 +349,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
private void FormRemoveTextForHearImpaired_Shown(object sender, EventArgs e)
|
||||
{
|
||||
FormRemoveTextForHearImpaired_Resize(sender, e);
|
||||
buttonOK.Focus();
|
||||
}
|
||||
|
||||
private void checkBoxRemoveTextBeforeColon_CheckedChanged(object sender, EventArgs e)
|
||||
|
1
src/ui/Forms/Translate/AutoTranslate.Designer.cs
generated
1
src/ui/Forms/Translate/AutoTranslate.Designer.cs
generated
@ -520,6 +520,7 @@
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "AutoTranslate";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.AutoTranslate_FormClosing);
|
||||
this.Shown += new System.EventHandler(this.AutoTranslate_Shown);
|
||||
this.ResizeEnd += new System.EventHandler(this.AutoTranslate_ResizeEnd);
|
||||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.AutoTranslate_KeyDown);
|
||||
this.Resize += new System.EventHandler(this.AutoTranslate_Resize);
|
||||
|
@ -1638,5 +1638,10 @@ namespace Nikse.SubtitleEdit.Forms.Translate
|
||||
{
|
||||
UiUtil.OpenUrl("https://ollama.com/library");
|
||||
}
|
||||
|
||||
private void AutoTranslate_Shown(object sender, EventArgs e)
|
||||
{
|
||||
buttonTranslate.Focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user