Skip to content

Commit

Permalink
don't show key binding in UI when command is not handled or not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-melcher authored and BeckerWdf committed Dec 16, 2024
1 parent d2f7367 commit 2da0507
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2da0507

Please sign in to comment.