-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notebook Renderer: textbox events are intercepted #11731
Comments
We should add output focus into the when clause. |
workaround: textbox.onkeydown = e => e.stopPropagation(); Will this disable the "when" clause? |
I have encountered the same issue. Adding workarounds every time I use a widget would be a hassle, and means I would be programming for both vscode and regular jupyter notebooks. |
This issue should be fixed now in latest Jupyter extension on VS Code 1.76+, @gorj-tessella @danmarshall can you help confirm? |
There are still some strange focus issues, I'm not sure if these are related to this issue. Recording.2023-03-31.152221.mp4 |
I was finally able to play around with this. It looks jumpy in the gif, but I think that's expected based on the behavior defined in the quickreply branch - the text box stays visible while the input has focus, and once the focus is lost, it hides and that changes the size of the output element. With the different size, your now hovered over the next element, so it becomes visible as well. So it's just due to the fact that showing and hiding the extra content will change the height and placement of the outputs. |
I tried the sample posted in the original issue. When in an input, the "m" key works fine, but the "a" key adds a new cell. |
interesting - when focusing on an input box within rendered GH issues, the |
Type: Bug
I've added a textbox to a Notebook Renderer. Some keystrokes are intercepted and are unable to be handled by the custom textbox, such as
M
(convert cell to markdown) andenter
etc. I would like to be able to add text (including command keystrokes) in my own textbox when it is focused.Here is my fork/branch of the vscode-github-issue-notebooks example:
https://github.com/danmarshall/vscode-github-issue-notebooks/tree/quickreply
VS Code version: Code - Insiders 1.73.0-insider (f4c58486f4a33b8c61f30a244374ef0d27dc19c3, 2022-10-11T05:17:54.676Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: Yes
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Extensions (11)
A/B Experiments
The text was updated successfully, but these errors were encountered: