Improve shortcut "Google it" a bit - thx Chris :)

Now just uses the focused text box
This commit is contained in:
niksedk 2022-12-24 12:57:22 +01:00
parent a8c855b4b1
commit 0cb0e0035e

View File

@ -23980,8 +23980,12 @@ namespace Nikse.SubtitleEdit.Forms
public void RunTranslateSearch(Action<string> 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)