mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Improve shortcut "Google it" a bit - thx Chris :)
Now just uses the focused text box
This commit is contained in:
parent
a8c855b4b1
commit
0cb0e0035e
@ -23980,8 +23980,12 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
|
|
||||||
public void RunTranslateSearch(Action<string> act)
|
public void RunTranslateSearch(Action<string> act)
|
||||||
{
|
{
|
||||||
var text = textBoxSearchWord.Text;
|
string text;
|
||||||
if (tabControlModes.SelectedTab != tabPageTranslate)
|
if (textBoxSearchWord.Focused)
|
||||||
|
{
|
||||||
|
text = textBoxSearchWord.Text;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
var tb = GetFocusedTextBox();
|
var tb = GetFocusedTextBox();
|
||||||
if (tb.SelectionLength == 0)
|
if (tb.SelectionLength == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user