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:
@@ -161,6 +161,13 @@ public class IconTextField extends JPanel
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean requestFocusInWindow()
|
||||
{
|
||||
super.requestFocusInWindow();
|
||||
return textField.requestFocusInWindow();
|
||||
}
|
||||
|
||||
public Document getDocument()
|
||||
{
|
||||
return textField.getDocument();
|
||||
|
||||
Reference in New Issue
Block a user