-
Notifications
You must be signed in to change notification settings - Fork 426
Description
There appears to be an issue when running D-Tale in VSCode on macOS with the ability to copy/paste values. I am able to copy values when highlighting the value in the table and clicking "Edit > Copy" from the top system bar. I am unable to copy values when highlighting the value and pressing the shortcut (Command + c). This is strange given that the top system bar shows the exact same shortcut. This issue does not occur when copying from regular dataframes in VSCode.
Initial research indicates this may be due to macOS, iframes, and webviews: microsoft/vscode#65452 (comment). Per the issue, "Using iframes in webviews is not ideal, but if your extension absolutely need to use them ... add code into your iframe that rebroadcasts keyboard events up to the webview so it can send then back to VS Code".
document.addEventListener('keydown', e => {
window.parent.dispatchEvent(new KeyboardEvent('keydown', e));
})
System specs:
- VSCode = 1.100.0
- macOS = Sequoia 15.4.1
Please let me know if you'd like any further testing from my end. As always, thanks for the wonderful tool!