Ghidra is a software reverse engineering (SRE) framework
Fixed escape key binding collision with closing windows by only enabling the action when there is a selection
dragonmacher0bb48934e8cd
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/codebrowser/CodeBrowserSelectionPlugin.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/codebrowser/CodeBrowserSelectionPlugin.javaindex 9e5996aa9e..1511e7e79f 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/codebrowser/CodeBrowserSelectionPlugin.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/codebrowser/CodeBrowserSelectionPlugin.java@@ -92,6 +92,7 @@ public class CodeBrowserSelectionPlugin extends Plugin {.helpLocation(new HelpLocation(HelpTopics.SELECTION, "Clear Selection")).withContext(CodeViewerActionContext.class, true).inWindow(ActionBuilder.When.CONTEXT_MATCHES)+ .enabledWhen(c -> c.hasSelection()).onAction(c -> ((CodeViewerProvider) c.getComponentProvider()).setSelection(new ProgramSelection())).buildAndInstall(tool);