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
If user wants to add a new keybinding for command A, say "Ctrl + J", but command B already uses "Ctrl + J" they will be shown an information about the conflict:
There are two problems:
if "Ctrl + J" is the default shortcut, it will not be overwritten when clicking "Overwrite"
if command B had multiple keybindings assigned, say "Ctrl + J" and "Ctrl +Shift + J" (and both are non-default), both will be removed
Description
If user wants to add a new keybinding for command A, say "Ctrl + J", but command B already uses "Ctrl + J" they will be shown an information about the conflict:
There are two problems:
This is ok-ish:
jupyterlab/packages/shortcuts-extension/src/components/ShortcutInput.tsx
Lines 136 to 143 in f00eef9
This is bad, see that
shortcutId
is not being used:jupyterlab/packages/shortcuts-extension/src/components/ShortcutUI.tsx
Lines 392 to 399 in f00eef9
Related to #15937.
Expected behavior
Only the relevant keybinding is removed, and it is removed reliably regardless if it is default or not
Context
The text was updated successfully, but these errors were encountered: