diff --git a/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/keys/show/ShowKeysUI.java b/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/keys/show/ShowKeysUI.java index afe4aa2b576..e39d1be9128 100644 --- a/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/keys/show/ShowKeysUI.java +++ b/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/keys/show/ShowKeysUI.java @@ -87,6 +87,9 @@ private void open(String commandId, String description, Event trigger, boolean f try { ICommandService cmdService = this.serviceLocator.getService(ICommandService.class); Command command = cmdService.getCommand(commandId); + if (!command.isHandled() || !command.isEnabled()) { + return; + } String name = command.getName(); if (description == null) { description = command.getDescription();