mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
IDEA-90877 Live Templates. Backspace in Speed Search deletes node under selection
This commit is contained in:
@@ -19,6 +19,7 @@ import com.intellij.openapi.actionSystem.*;
|
||||
import com.intellij.openapi.project.DumbAware;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.ui.speedSearch.SpeedSearchSupply;
|
||||
import com.intellij.util.IconUtil;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -164,6 +165,11 @@ public class CommonActionsPanel extends JPanel {
|
||||
e.getPresentation().setEnabled(false);
|
||||
return;
|
||||
}
|
||||
final SpeedSearchSupply supply = SpeedSearchSupply.getSupply(contextComponent);
|
||||
if (supply != null && supply.isPopupActive()) {
|
||||
e.getPresentation().setEnabled(false);
|
||||
return;
|
||||
}
|
||||
removeButton.update(e);
|
||||
}
|
||||
}.registerCustomShortcutSet(CustomShortcutSet.fromString("DELETE", "BACK_SPACE"), removeButton.getContextComponent());
|
||||
|
||||
Reference in New Issue
Block a user