Add activeWebviewViewId context key
It would be great to have a context key for the active webview view similar to what we have for custom editors and webview panels, e.g. see https://github.com/microsoft/vscode/issues/156942
Usage scenario:
- Shortcuts specific to a webview view. Currently this requires handling the shortcuts separately within the iframe.
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
I used the focus and blur events in the webview document - they send a message to the extension host to set a ui context. That way the user can still remap the keybindings. It would be good to have VS Code handle this as yous uggest.
This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!