##// END OF EJS Templates
remove recreation of QuickHelp
Paul Ivanov -
Show More
@@ -198,15 +198,13 b' IPython.keyboard = (function (IPython) {'
198 this.add_shortcut(shortcut, data[shortcut], true);
198 this.add_shortcut(shortcut, data[shortcut], true);
199 }
199 }
200 // update the keyboard shortcuts notebook help
200 // update the keyboard shortcuts notebook help
201 IPython.quick_help = new IPython.QuickHelp();
201 $([IPython.events]).trigger('rebuild.QuickHelp');
202 }
202 }
203
203
204 ShortcutManager.prototype.remove_shortcut = function (shortcut, suppress_help_update) {
204 ShortcutManager.prototype.remove_shortcut = function (shortcut, suppress_help_update) {
205 shortcut = normalize_shortcut(shortcut);
205 shortcut = normalize_shortcut(shortcut);
206 delete this._counts[shortcut];
206 delete this._counts[shortcut];
207 delete this._shortcuts[shortcut];
207 delete this._shortcuts[shortcut];
208 // update the keyboard shortcuts notebook help
209 IPython.quick_help = new IPython.QuickHelp();
210 if (!suppress_help_update) {
208 if (!suppress_help_update) {
211 // update the keyboard shortcuts notebook help
209 // update the keyboard shortcuts notebook help
212 $([IPython.events]).trigger('rebuild.QuickHelp');
210 $([IPython.events]).trigger('rebuild.QuickHelp');
General Comments 0
You need to be logged in to leave comments. Login now