vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Add activeWebviewViewId context key

Open pwang347 opened this issue 3 years ago • 2 comments

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.

pwang347 avatar Dec 01 '22 01:12 pwang347

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!

vscodenpa avatar Dec 05 '22 16:12 vscodenpa

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.

r3m0t avatar Dec 08 '22 16:12 r3m0t

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!

vscodenpa avatar Jan 25 '23 02:01 vscodenpa

: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!

vscodenpa avatar Feb 05 '23 02:02 vscodenpa