From aed71eb5dea31b35c4680d6a18d660b14cb0d98a Mon Sep 17 00:00:00 2001 From: anna Date: Mon, 6 Jun 2011 16:31:53 +0400 Subject: [PATCH] disable sub menu selection on enter when no quick fix available (IDEA-70476 ) --- .../intellij/codeInsight/intention/impl/IntentionListStep.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/IntentionListStep.java b/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/IntentionListStep.java index cfb6d0bcea5b..84ecf5006e9b 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/IntentionListStep.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/IntentionListStep.java @@ -204,7 +204,8 @@ class IntentionListStep implements ListPopupStep return FINAL_CHOICE; } - if (hasSubstep(action)) { + //disable sub menu selection on enter (when no quick fix available) + if (!finalChoice && hasSubstep(action)) { return getSubStep(action, action.getToolName()); }