You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] VS Code keybindings (Cmd+P, etc.) don't work while a Plannotator tab is focused #969
When a Plannotator tab is focused in the VS Code extension, native VS Code
keybindings stop working — e.g. Cmd+P (Quick Open), Cmd+Shift+P
(Command Palette), and similar global shortcuts do nothing until focus
returns to a regular editor.
Root cause
The extension renders the Plannotator app inside a nested iframe:
VS Code webview (outer sandboxed iframe)
└─ wrapper HTML (panel-manager.ts)
└─ <iframe> with the Plannotator app ← focus lives here
VS Code resolves its keybindings by intercepting keydown events that
bubble up to the webview. When focus is inside the nested app iframe
(a different origin via asExternalUri), keydown events don't cross the
iframe boundary, so the webview — and therefore VS Code — never sees them.
There is currently no keyboard forwarding in the extension (no keydown
handling in apps/vscode-extension/src/).
Suggested fix
Adopt the standard VS Code webview pattern: forward keyboard events from the
nested iframe up to the wrapper and re-dispatch a synthetic KeyboardEvent
that the webview can pick up. Two small additions to existing injection points:
Inside the iframe (cookie-proxy.ts): listen for keydown and postMessage the serialized event to the parent.
In the wrapper (panel-manager.ts): on that message, reconstruct a KeyboardEvent and window.dispatchEvent(...).
Activity
fix(vscode): bridge clipboard and forward keystrokes in webview (back…