Fix Config search bar focus

Fixes #3044

- When changing the component for the search bar, anywhere on the code
where focus was requested for the search bar, it was only applied to
the search bar's parent container. All I had to do was override the
focus requesting method and execute it for the text field.
This commit is contained in:
Ruben Amendoeira
2018-05-21 11:45:12 +01:00
parent 0a7c09310d
commit 2fdded3884

View File

@@ -161,6 +161,13 @@ public class IconTextField extends JPanel
}
}
@Override
public boolean requestFocusInWindow()
{
super.requestFocusInWindow();
return textField.requestFocusInWindow();
}
public Document getDocument()
{
return textField.getDocument();