Set focus on most relevant button in AutoTranslate + Remove-text-for-HI - thx Bob :)

This commit is contained in:
Nikolaj Olsson 2024-11-19 08:29:50 +01:00
parent 6a927b8fe5
commit 6747d12173
3 changed files with 7 additions and 0 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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();
}
}
}