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:
@@ -477,6 +477,16 @@ public class FindPopupPanel extends JBPanel implements FindUI, DataProvider {
|
||||
return true;
|
||||
}
|
||||
}.installOn(myResultsPreviewTable);
|
||||
myResultsPreviewTable.addMouseListener(new MouseAdapter() {
|
||||
@Override
|
||||
public void mousePressed(MouseEvent e) {
|
||||
IdeFocusManager focusManager = IdeFocusManager.getInstance(myProject);
|
||||
Component focusOwner = focusManager.getFocusOwner();
|
||||
if (focusOwner != null && SwingUtilities.isDescendingFrom(focusOwner, myUsagePreviewPanel)) {
|
||||
focusManager.requestFocus(mySearchComponent, true);
|
||||
}
|
||||
}
|
||||
});
|
||||
applyFont(JBUI.Fonts.label(), myCbCaseSensitive, myCbPreserveCase, myCbWholeWordsOnly, myCbRegularExpressions,
|
||||
myResultsPreviewTable);
|
||||
ScrollingUtil.installActions(myResultsPreviewTable, false, mySearchComponent);
|
||||
|
||||
Reference in New Issue
Block a user