diff --git a/src/ui/Forms/Main.cs b/src/ui/Forms/Main.cs index 4e1b9b5d0..2fb503c72 100644 --- a/src/ui/Forms/Main.cs +++ b/src/ui/Forms/Main.cs @@ -23980,8 +23980,12 @@ namespace Nikse.SubtitleEdit.Forms public void RunTranslateSearch(Action act) { - var text = textBoxSearchWord.Text; - if (tabControlModes.SelectedTab != tabPageTranslate) + string text; + if (textBoxSearchWord.Focused) + { + text = textBoxSearchWord.Text; + } + else { var tb = GetFocusedTextBox(); if (tb.SelectionLength == 0)