From 740fae9954b348e98b9b208c16cfb24196bd531a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=A4der?= Date: Thu, 4 Apr 2024 14:57:28 +0200 Subject: [PATCH] Always consider the "passthrough" commmand enabled for keybindings (#13564) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #13560 Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder --- packages/core/src/browser/keybinding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/browser/keybinding.ts b/packages/core/src/browser/keybinding.ts index a88eba3057be2..6871f5381ba62 100644 --- a/packages/core/src/browser/keybinding.ts +++ b/packages/core/src/browser/keybinding.ts @@ -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)) {