Skip to content

Commit 49e167c

Browse files
tsmaederjfaltermeier
authored andcommitted
Always consider the "passthrough" commmand enabled for keybindings (#13564)
Fixes #13560 Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <[email protected]>
1 parent 7197d0f commit 49e167c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/browser/keybinding.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ export class KeybindingRegistry {
497497

498498
isEnabledInScope(binding: common.Keybinding, target: HTMLElement | undefined): boolean {
499499
const context = binding.context && this.contexts[binding.context];
500-
if (binding.command && !this.commandRegistry.isEnabled(binding.command, binding.args)) {
500+
if (binding.command && (!this.isPseudoCommand(binding.command) && !this.commandRegistry.isEnabled(binding.command, binding.args))) {
501501
return false;
502502
}
503503
if (context && !context.isEnabled(binding)) {

0 commit comments

Comments
 (0)