mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-169672 FindInPath popup: keyboard focus can't be moved to results list after some control selecting or moving focus to preview
This commit is contained in:
@@ -482,7 +482,7 @@ public class FindPopupPanel extends JBPanel implements FindUI, DataProvider {
|
||||
public void mousePressed(MouseEvent e) {
|
||||
IdeFocusManager focusManager = IdeFocusManager.getInstance(myProject);
|
||||
Component focusOwner = focusManager.getFocusOwner();
|
||||
if (focusOwner != null && SwingUtilities.isDescendingFrom(focusOwner, myUsagePreviewPanel)) {
|
||||
if (focusOwner != null && SwingUtilities.isDescendingFrom(focusOwner, FindPopupPanel.this) && focusOwner != myReplaceComponent) {
|
||||
focusManager.requestFocus(mySearchComponent, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user