We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4fcbd6 commit faeaefbCopy full SHA for faeaefb
src/main/java/org/scijava/ui/swing/search/SwingSearchBar.java
@@ -253,12 +253,14 @@ protected void showPanel(final Container panel) {
253
final int x = w.getLocation().x;
254
final int y = w.getLocation().y + w.getHeight() + 1;
255
dialog.setLocation(x, y);
256
+ dialog.setFocusableWindowState(false);
257
threadService.queue(() -> {
258
dialog.setVisible(true);
259
try { Thread.sleep(100); }
260
catch (InterruptedException exc) {}
261
grabFocus();
262
requestFocus();
263
+ dialog.setFocusableWindowState(true);
264
});
265
}
266
0 commit comments