mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix Tab/Enter in lookups when there are items whose lookup string is equal to the prefix
This commit is contained in:
@@ -316,7 +316,7 @@ public class LookupImpl extends LightweightHint implements Lookup, Disposable {
|
||||
if (hasItems) {
|
||||
myList.setFixedCellWidth(Math.max(myLookupTextWidth + myCellRenderer.getIconIndent(), myAdComponent.getPreferredSize().width));
|
||||
|
||||
if (isFocused() && !hasExactPrefixes) {
|
||||
if (isFocused() && (!hasExactPrefixes || mySelectionTouched)) {
|
||||
restoreSelection(oldSelected, hasPreselectedItem, oldInvariant);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user