Skip to content

Commit 5585fea

Browse files
authored
Merge pull request #2912 from gnestor/issue-2904
Show edit shortcuts modal after shortcuts modal is hidden
2 parents 0112703 + d537ef6 commit 5585fea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

notebook/static/notebook/js/quickhelp.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,11 @@ define([
286286
// close this dialog
287287
$(that.shortcut_dialog).modal("toggle");
288288
// and open the next one
289-
that.keyboard_manager.actions.call(
290-
'jupyter-notebook:edit-command-mode-keyboard-shortcuts');
289+
$(that.shortcut_dialog).on('hidden.bs.modal', function (e) {
290+
that.keyboard_manager.actions.call(
291+
'jupyter-notebook:edit-command-mode-keyboard-shortcuts'
292+
);
293+
});
291294
});
292295
div.find('h4').append(edit_button);
293296
return div;

0 commit comments

Comments
 (0)