From 0ca3a76bb7d86bb2cd72ea410b73def09484a2bc 2014-03-27 21:38:13 From: Paul Ivanov Date: 2014-03-27 21:38:13 Subject: [PATCH] Merge pull request #5451 from minrk/comment-shortcut check that a handler is actually registered in ShortcutManager.handles --- diff --git a/IPython/html/static/base/js/keyboard.js b/IPython/html/static/base/js/keyboard.js index 4fa77d5..8210ad7 100644 --- a/IPython/html/static/base/js/keyboard.js +++ b/IPython/html/static/base/js/keyboard.js @@ -252,7 +252,7 @@ IPython.keyboard = (function (IPython) { ShortcutManager.prototype.handles = function (event) { var shortcut = event_to_shortcut(event); var data = this._shortcuts[shortcut]; - return !( data === undefined ) + return !( data === undefined || data.handler === undefined ) } return {