panel icon indicating copy to clipboard operation
panel copied to clipboard

VSCode Shortcuts Triggered When Typing on TextInput

Open marciodps opened this issue 1 year ago • 2 comments

Hello,

I've done a lot of research to find a solution on how to fix this, but nothing resulted so far.

I'm using it servable, and it displays the output perfectly, but when I type "A" it adds a new cell, if I type "D" twice it deletes the cell, so its triggering the VSCode shortcuts.

marciodps avatar Jun 12 '24 12:06 marciodps

I have an update, i think i found how to fix it.

After trying to edit the keybindings vscode default JSON, I created a few scripts to get the default keybinds from vscode github and replace the my keybindings file with the default.

By doing that i found that the issue is that when you install "Jupyter" extension for VSCode it comes with "Jupyter Keymap", which is originating the error.

You can fix it by running this on the notebook:

!code --uninstall-extension ms-toolsai.jupyter-keymap

marciodps avatar Jun 12 '24 14:06 marciodps

I have an update, i think i found how to fix it.

After trying to edit the keybindings vscode default JSON, I created a few scripts to get the default keybinds from vscode github and replace the my keybindings file with the default.

By doing that i found that the issue is that when you install "Jupyter" extension for VSCode it comes with "Jupyter Keymap", which is originating the error.

You can fix it by running this on the notebook:

!code --uninstall-extension ms-toolsai.jupyter-keymap

You can also disable the keymaps extension if you want to use the notebook elsewhere

progressEdd avatar Jun 13 '24 14:06 progressEdd

We really need an expert on VSCode here. We had similar problems with JupyterLab but they provided CSS classes we could apply to prevent the event propagation. The same issue seems to exist for IPywidgets and unfortunately the authors of the extension have never responded: https://github.com/microsoft/vscode-jupyter-keymap/issues/7

philippjfr avatar Aug 02 '24 10:08 philippjfr

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Sep 09 '25 17:09 github-actions[bot]