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
bugIssue identified by VS Code Team member as probable bugelectronIssues and items related to Electronelectron-blockerIssues in next update of Electron preventing updateverifiedVerification succeeded
Daniel Imms (@Tyriar) is that on macOS? I cannot reproduce but there is a high probability that the code I added here can cause issues, e.g. for chords.
Bottom line is that the webview element is entirely different with Electron 3.0.x (changed to an out of process iframe), as such DOM events are no longer dispatched from inside to the outside.
It would be great if you guys could take this for November, because I am out on vacation for 2.5 weeks starting next week. Moving to November.
Which indicates that the way we emulate the keyboard event is not good enough on Windows at least to be treated like a real keypress. I will need to consult with alexandrudima how to produce a "fake" keyboard event that can be dispatched properly.
I think a better solution (that I just verified works on Windows) is to listen on the actual keyboard event in the webview and serialize that one over to the renderer to dispatch to the keybinding service. It looks like one property is missing from Electron's before-input-event that causes us to ignore the keyboard event. The property is keyCode.
bugIssue identified by VS Code Team member as probable bugelectronIssues and items related to Electronelectron-blockerIssues in next update of Electron preventing updateverifiedVerification succeeded
Activity
bpasero commentedon Oct 25, 2018
Daniel Imms (@Tyriar) is that on macOS? I cannot reproduce but there is a high probability that the code I added here can cause issues, e.g. for chords.
Bottom line is that the
webviewelement is entirely different with Electron 3.0.x (changed to an out of process iframe), as such DOM events are no longer dispatched from inside to the outside.It would be great if you guys could take this for November, because I am out on vacation for 2.5 weeks starting next week. Moving to November.
Tyriar commentedon Oct 26, 2018
This was on Windows 10
bpasero commentedon Oct 26, 2018
Ok, I was testing only macOS.
bpasero commentedon Oct 27, 2018
Daniel Imms (@Tyriar) I cannot reproduce, in this video I can open settings (Ctrl+,) and quick open (Ctrl+P):
bpasero commentedon Dec 1, 2018
Daniel Imms (@Tyriar) ping
Tyriar commentedon Dec 3, 2018
I can still reproduce, I notice you're using the OSS build over the exploration, maybe that's it? Build details:
VS Code version: Code - Exploration 1.30.0-exploration (57d85c2, 2018-12-01T13:59:00.436Z)
OS version: Windows_NT x64 10.0.18290
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: unavailable_off
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (7)
(1 theme extensions excluded)
bpasero commentedon Dec 3, 2018
I can reproduce from my Windows box, maybe it was a Parallels issue.
Matt Bierner (@mjbvz) did you have time to look into this?
bpasero commentedon Dec 3, 2018
When I print the keybinding we emit:
https://github.com/Microsoft/vscode/blob/57d85c2667e8e66140e0f7edfb8b6e636c6a4876/src/vs/workbench/parts/webview/electron-browser/webviewElement.ts#L163
At least I am getting the exact same result on Linux (where the keybinding works) as on Windows, weird.
bpasero commentedon Dec 3, 2018
Ok, it ends up being ignored here:
https://github.com/Microsoft/vscode/blob/57d85c2667e8e66140e0f7edfb8b6e636c6a4876/src/vs/platform/keybinding/common/abstractKeybindingService.ts#L170
Which indicates that the way we emulate the keyboard event is not good enough on Windows at least to be treated like a real keypress. I will need to consult with alexandrudima how to produce a "fake" keyboard event that can be dispatched properly.
bpasero commentedon Dec 4, 2018
I think a better solution (that I just verified works on Windows) is to listen on the actual keyboard event in the
webviewand serialize that one over to therendererto dispatch to the keybinding service. It looks like one property is missing from Electron'sbefore-input-eventthat causes us to ignore the keyboard event. The property iskeyCode.bpasero commentedon Dec 5, 2018
Fixed via 42cde7e
Tyriar commentedon Jan 31, 2019
Verified on windows, linux and mac