Merge remote-tracking branch 'origin/GP-0-dragonmacher-test-fixes-4-2-26'

This commit is contained in:
Ryan Kurtz
2026-04-02 13:31:24 -04:00
2 changed files with 8 additions and 4 deletions

View File

@@ -249,8 +249,8 @@ public class GhidraScriptEditorComponentProvider extends ComponentProvider {
@Override
public boolean isEnabledForContext(ActionContext context) {
Object contextObject = context.getContextObject();
if (contextObject != GhidraScriptEditorComponentProvider.this) {
ComponentProvider contextProvider = context.getComponentProvider();
if (contextProvider != GhidraScriptEditorComponentProvider.this) {
return false;
}

View File

@@ -120,8 +120,12 @@ public class KeyBindingsModel {
String name = names.get(i);
KeyBindingState state = actionInfoByFullName.get(name);
String fullName = state.getFullName();
sb.append(fullName);
// Note: we do not use state.getFullName() here as that only displays 'Shared' for
// shared actions. We would like to see all shared action owners here.
String shortName = state.getName();
sb.append(shortName);
sb.append(" (").append(state.getOwnerDescription()).append(')');
if (i < names.size() - 1) {
sb.append("\n");
}