Closed Phrogz closed 1 year ago
I apologize for the noise. I just discovered that the inputFocus
context allows me to detect when the Command Palette is focused, and disable my keybinding:
"keybindings": [
{
"command": "visual-scxml-editor.toggleEventDisplay",
"key": "e",
"when": "visual-scxml-editor.visualEditorActive && !inputFocs"
},
This seems like a sufficiently-elegant solution to an edge-case problem, that I'm withdrawing this as a bug report.
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
Preferences: Open Keyboard Shortcuts
Q
EXPECTED: the text
qu
is shown in the command palette.ACTUAL: only the text
u
is shown in the command palette.I am writing an extension with a webview where I want to expose certain frequently-used commands using unmodified characters like
q
as the keybinding. Thewhen
clause only activates this binding when my webview is active; however, if I open the command palette when the webview is active I cannot type certain letters, as they invoke the command.I believe the Command palette should be receiving key events when open and using
stopPropagation()
to prevent them from triggering commands.The problem exists even in the latest Insiders build: