From d537ef635022072395eddcbe1b2f3d08bb8c260f Mon Sep 17 00:00:00 2001 From: Grant Nestor Date: Mon, 9 Oct 2017 13:16:24 -0700 Subject: [PATCH] Show edit shortcuts modal after shortcuts modal is hidden --- notebook/static/notebook/js/quickhelp.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/notebook/static/notebook/js/quickhelp.js b/notebook/static/notebook/js/quickhelp.js index 80a8d832c2..6d41ba6203 100644 --- a/notebook/static/notebook/js/quickhelp.js +++ b/notebook/static/notebook/js/quickhelp.js @@ -286,8 +286,11 @@ define([ // close this dialog $(that.shortcut_dialog).modal("toggle"); // and open the next one - that.keyboard_manager.actions.call( - 'jupyter-notebook:edit-command-mode-keyboard-shortcuts'); + $(that.shortcut_dialog).on('hidden.bs.modal', function (e) { + that.keyboard_manager.actions.call( + 'jupyter-notebook:edit-command-mode-keyboard-shortcuts' + ); + }); }); div.find('h4').append(edit_button); return div;