-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Disable keyboard shortcuts when entring text in create shortcut menu #2904
Comments
It appears to be working correctly for me. What browser are you using? Can you describe exactly what sequence of clicks does this? |
I experience the same behavior on firefox nightly 58.0a1, surf 2.0 and ungoogled-chromium 58. |
Ah, now I see it. Sorry, I skim read and was going to it directly from the help menu. |
Here's the relevant code: notebook/notebook/static/notebook/js/quickhelp.js Lines 285 to 291 in 12592ef
When a dialog opens, it disables our shortcuts, and when it closes, it re-enables them. But for some reason, the event from closing the first dialog fires after the event from opening the second one. So the shortcuts get re-enabled by the first dialog closing, even though another one is still open. |
This seems to work for me: $(that.shortcut_dialog).on('hidden.bs.modal', function (e) {
that.keyboard_manager.actions.call(
'jupyter-notebook:edit-command-mode-keyboard-shortcuts'
);
}); |
Thanks @gnestor |
In version 5.1.0 of notebook when entering keyboard shortcut menu from
Help->Keyboard shortcuts->Edit shortcuts
global shortcuts are not disabled.For example, if I want to type
Ctrl-Enter
I would get onlyCt-Ente
becauser
andl
are binded to the jupyter commands.The text was updated successfully, but these errors were encountered: