Skip to content

Commit

Permalink
Always consider the "passthrough" commmand enabled for keybindings (#…
Browse files Browse the repository at this point in the history
…13564)

Fixes #13560

Contributed on behalf of STMicroelectronics

Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
  • Loading branch information
tsmaeder authored and jfaltermeier committed Apr 5, 2024
1 parent 7197d0f commit 49e167c
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 49e167c

Please sign in to comment.