mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-60185 Autocompletion popup: pressing Page Up/Down in just opened list closes it and works in the editor
This commit is contained in:
+4
-2
@@ -155,20 +155,22 @@ public abstract class LookupActionHandler extends EditorActionHandler {
|
||||
|
||||
public static class PageDownHandler extends LookupActionHandler {
|
||||
public PageDownHandler(final EditorActionHandler originalHandler) {
|
||||
super(originalHandler, true);
|
||||
super(originalHandler, false);
|
||||
}
|
||||
|
||||
protected void executeInLookup(final LookupImpl lookup, DataContext context) {
|
||||
lookup.setFocused(true);
|
||||
ListScrollingUtil.movePageDown(lookup.getList());
|
||||
}
|
||||
}
|
||||
|
||||
public static class PageUpHandler extends LookupActionHandler {
|
||||
public PageUpHandler(EditorActionHandler originalHandler){
|
||||
super(originalHandler, true);
|
||||
super(originalHandler, false);
|
||||
}
|
||||
|
||||
protected void executeInLookup(final LookupImpl lookup, DataContext context) {
|
||||
lookup.setFocused(true);
|
||||
ListScrollingUtil.movePageUp(lookup.getList());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user