VS Code Codex sidebar do not work with custom multi-stroke keybinding
What version of the VS Code extension are you using?
0.5.46
What subscription do you have?
ChatGPT Plus
Which IDE are you using?
VS Code
What platform is your computer?
Linux 5.4.0-216-generic x86_64 x86_64
What issue are you seeing?
I’m experiencing an issue where custom keybindings for navigating between views/editor groups stop working when the focus is inside a Webview-based panel (only for Codex, Copilot Chat works normally).
My keybindings are:
View: Navigate to the View Above → Ctrl+W K
View: Navigate to the View Below → Ctrl+W J
View: Navigate to the View on the Left → Ctrl+W H
View: Navigate to the View on the Right → Ctrl+W L
These commands work perfectly when focus is inside the normal editor area.
However, when I click inside the codex input panel, the keybindings no longer fire at all. Instead, VS Code simply types the literal character (h, j, k, l), as if the keybinding system is bypassed.
I also tried:
• Pressing Esc → the Webview still keeps focus, the cursor is still there; keybindings still do not work
• Clicking outside the input box, the input cursor is gone → keybindings do work
What steps can reproduce the bug?
Use the following keybinding:
Ctrl+W H → View: Navigate to the View on the Left
Ctrl+W L → View: Navigate to the View on the Right
Ctrl+W K → View: Navigate to the View Above
Ctrl+W J → View: Navigate to the View Below
Click inside the codex sidebar input panel and try Ctrl+W H or Ctrl+W L
What is the expected behavior?
Even when a Webview panel is focused, VS Code should:
• dispatch global or user-defined keybindings normally,
• unless the Webview explicitly handles those keystrokes.
At minimum:
• Pressing Esc should reliably exit text-input mode and return control to the VS Code keybinding system.
Additional information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗