mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-136619 (show chooser only for those groups which cannot be executed as actions)
This commit is contained in:
+2
-2
@@ -575,9 +575,9 @@ public final class IdeKeyEventDispatcher implements Disposable {
|
||||
public void performAction(@NotNull InputEvent e, @NotNull AnAction action, @NotNull AnActionEvent actionEvent) {
|
||||
e.consume();
|
||||
|
||||
if (action instanceof ActionGroup) {
|
||||
DataContext ctx = actionEvent.getDataContext();
|
||||
if (action instanceof ActionGroup && !((ActionGroup)action).canBePerformed(ctx)) {
|
||||
ActionGroup group = (ActionGroup)action;
|
||||
DataContext ctx = actionEvent.getDataContext();
|
||||
JBPopupFactory.getInstance()
|
||||
.createActionGroupPopup(group.getTemplatePresentation().getText(), group, ctx, JBPopupFactory.ActionSelectionAid.SPEEDSEARCH, false)
|
||||
.showInBestPositionFor(ctx);
|
||||
|
||||
Reference in New Issue
Block a user