Skip to content

Commit 2da0507

Browse files
tobias-melcherBeckerWdf
authored andcommitted
don't show key binding in UI when command is not handled or not enabled
1 parent d2f7367 commit 2da0507

File tree

1 file changed

+3
-0
lines changed
  • bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/keys/show

1 file changed

+3
-0
lines changed

bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/keys/show/ShowKeysUI.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ private void open(String commandId, String description, Event trigger, boolean f
8787
try {
8888
ICommandService cmdService = this.serviceLocator.getService(ICommandService.class);
8989
Command command = cmdService.getCommand(commandId);
90+
if (!command.isHandled() || !command.isEnabled()) {
91+
return;
92+
}
9093
String name = command.getName();
9194
if (description == null) {
9295
description = command.getDescription();

0 commit comments

Comments
 (0)