mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
- IDEA-146150 Page up/down in preview mode of find in path
- remember search pattern on escape too
This commit is contained in:
@@ -191,6 +191,7 @@ public class FindDialog extends DialogWrapper {
|
||||
|
||||
@Override
|
||||
public void doCancelAction() { // doCancel disposes fields and then calls dispose
|
||||
applyTo(FindManager.getInstance(myProject).getFindInProjectModel(), false);
|
||||
rememberResultsPreviewWasOpen();
|
||||
super.doCancelAction();
|
||||
}
|
||||
@@ -369,6 +370,24 @@ public class FindDialog extends DialogWrapper {
|
||||
}
|
||||
);
|
||||
|
||||
makeResultsPreviewActionOverride(
|
||||
comboBox,
|
||||
KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0),
|
||||
"scrollUp",
|
||||
() -> {
|
||||
ScrollingUtil.movePageUp(myResultsPreviewTable);
|
||||
}
|
||||
);
|
||||
|
||||
makeResultsPreviewActionOverride(
|
||||
comboBox,
|
||||
KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0),
|
||||
"scrollDown",
|
||||
() -> {
|
||||
ScrollingUtil.movePageDown(myResultsPreviewTable);
|
||||
}
|
||||
);
|
||||
|
||||
AnAction action = new AnAction() {
|
||||
@Override
|
||||
public void actionPerformed(AnActionEvent e) {
|
||||
@@ -1655,7 +1674,6 @@ public class FindDialog extends DialogWrapper {
|
||||
}
|
||||
|
||||
if (navigations != null) {
|
||||
applyTo(FindManager.getInstance(myProject).getFindInProjectModel(), false);
|
||||
doCancelAction();
|
||||
navigations.get(0).navigate(true);
|
||||
for(int i = 1; i < navigations.size(); ++i) navigations.get(i).highlightInEditor();
|
||||
|
||||
Reference in New Issue
Block a user