Skip to content

Commit 11b8372

Browse files
frauzufallctrueden
authored andcommitted
searchbar: fix lost focus after first letter (linux)
1 parent ce9a638 commit 11b8372

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/scijava/ui/swing/search/SwingSearchBar.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ private void search() {
214214
dialog.setFocusableWindowState(false);
215215
dialog.setVisible(true);
216216
dialog.setFocusableWindowState(true);
217+
SwingUtilities.getWindowAncestor(this).requestFocusInWindow();
218+
grabFocus();
219+
requestFocus();
217220
}
218221
}
219222

0 commit comments

Comments
 (0)