mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
select first item when pressing down on a completely non-focused lookup (IDEA-101043)
This commit is contained in:
@@ -85,9 +85,13 @@ public abstract class LookupActionHandler extends EditorActionHandler {
|
||||
|
||||
static void executeDown(LookupImpl lookup) {
|
||||
if (!lookup.isFocused()) {
|
||||
boolean semiFocused = CompletionPreview.hasPreview(lookup);
|
||||
lookup.setFocused(true);
|
||||
lookup.getList().setSelectedIndex(0);
|
||||
lookup.refreshUi(false, true);
|
||||
if (!semiFocused) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
ListScrollingUtil.moveDown(lookup.getList(), 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user