mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-53901 Bookmarks window: "Escape" key does not work when the input is in preview pane
This commit is contained in:
@@ -308,7 +308,7 @@ public class PopupChooserBuilder {
|
||||
.setCancelCallback(myCancelCallback)
|
||||
.setAlpha(myAlpha)
|
||||
.setFocusOwners(myFocusOwners)
|
||||
.setCancelKeyEnabled(myCancelKeyEnabled && !(myChooserComponent instanceof ListWithFilter))
|
||||
.setCancelKeyEnabled(myCancelKeyEnabled)
|
||||
.setAdText(myAd, myAdAlignment)
|
||||
.setKeyboardActions(myKeyboardActions)
|
||||
.setMayBeParent(myMayBeParent)
|
||||
|
||||
@@ -165,20 +165,7 @@ public class StackingPopupDispatcherImpl extends StackingPopupDispatcher impleme
|
||||
} else {
|
||||
popup = getFocusedPopup();
|
||||
}
|
||||
|
||||
if (popup == null) return false;
|
||||
|
||||
|
||||
if (closeRequest) {
|
||||
if (popup.isCancelKeyEnabled()) {
|
||||
popup.cancel();
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
return popup.dispatchKeyEvent(e);
|
||||
}
|
||||
|
||||
return false;
|
||||
return popup != null && popup.dispatchKeyEvent(e);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user