From 39cbd986ba70fd6e08b14968649a242c7784b44e Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Sat, 9 May 2020 10:34:12 +0200 Subject: [PATCH] Fix tabstop in "Unknown subtitle window" --- src/Forms/UnknownSubtitle.Designer.cs | 5 +++-- src/Forms/UnknownSubtitle.cs | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Forms/UnknownSubtitle.Designer.cs b/src/Forms/UnknownSubtitle.Designer.cs index c59592c81..9df2fb3f9 100644 --- a/src/Forms/UnknownSubtitle.Designer.cs +++ b/src/Forms/UnknownSubtitle.Designer.cs @@ -80,7 +80,7 @@ this.buttonImportPlainText.Location = new System.Drawing.Point(260, 272); this.buttonImportPlainText.Name = "buttonImportPlainText"; this.buttonImportPlainText.Size = new System.Drawing.Size(191, 27); - this.buttonImportPlainText.TabIndex = 42; + this.buttonImportPlainText.TabIndex = 4; this.buttonImportPlainText.Text = "Import plain text..."; this.buttonImportPlainText.UseVisualStyleBackColor = true; this.buttonImportPlainText.Click += new System.EventHandler(this.buttonImportPlainText_Click); @@ -105,7 +105,7 @@ this.textBoxPreview.ReadOnly = true; this.textBoxPreview.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBoxPreview.Size = new System.Drawing.Size(539, 141); - this.textBoxPreview.TabIndex = 43; + this.textBoxPreview.TabIndex = 2; // // UnknownSubtitle // @@ -127,6 +127,7 @@ this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Unknown subtitle"; + this.Shown += new System.EventHandler(this.UnknownSubtitle_Shown); this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FormUnknownSubtitle_KeyDown); this.ResumeLayout(false); this.PerformLayout(); diff --git a/src/Forms/UnknownSubtitle.cs b/src/Forms/UnknownSubtitle.cs index 072387701..49dc29c16 100644 --- a/src/Forms/UnknownSubtitle.cs +++ b/src/Forms/UnknownSubtitle.cs @@ -65,5 +65,10 @@ namespace Nikse.SubtitleEdit.Forms ImportPlainText = true; DialogResult = DialogResult.OK; } + + private void UnknownSubtitle_Shown(object sender, System.EventArgs e) + { + buttonOK.Focus(); + } } }