Skip to content

Commit

Permalink
Always consider the "passthrough" commmand enabled for keybindings
Browse files Browse the repository at this point in the history
Fixes eclipse-theia#13560

Contributed on behalf of STMicroelectronics

Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
  • Loading branch information
tsmaeder committed Apr 4, 2024
1 parent 86bac3e commit a25ab40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/browser/keybinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ export class KeybindingRegistry {

isEnabledInScope(binding: common.Keybinding, target: HTMLElement | undefined): boolean {
const context = binding.context && this.contexts[binding.context];
if (binding.command && !this.commandRegistry.isEnabled(binding.command, binding.args)) {
if (binding.command && (!this.isPseudoCommand(binding.command) && !this.commandRegistry.isEnabled(binding.command, binding.args))) {
return false;
}
if (context && !context.isEnabled(binding)) {
Expand Down

0 comments on commit a25ab40

Please sign in to comment.