Permalink
Browse files

removing keyboard shortcuts should also update help

  • Loading branch information...
1 parent 1566f89 commit c10323d9450a08a88f15d7e2befc880900c35d63 @ivanov committed Feb 6, 2014
Showing with 7 additions and 1 deletion.
  1. +7 −1 IPython/html/static/notebook/js/keyboardmanager.js
@@ -631,10 +631,16 @@ var IPython = (function (IPython) {
IPython.quick_help = new IPython.QuickHelp();
}
- ShortcutManager.prototype.remove_shortcut = function (shortcut) {
+ ShortcutManager.prototype.remove_shortcut = function (shortcut, suppress_help_update) {
shortcut = this.normalize_shortcut(shortcut);
delete this._counts[shortcut];
delete this._shortcuts[shortcut];
+ // update the keyboard shortcuts notebook help
+ IPython.quick_help = new IPython.QuickHelp();
+ if (!suppress_help_update) {
+ // update the keyboard shortcuts notebook help
+ IPython.quick_help = new IPython.QuickHelp();
+ }
}
ShortcutManager.prototype.count_handler = function (shortcut, event, data) {

0 comments on commit c10323d

Please sign in to comment.