Skip to content

Commit

Permalink
Merge pull request #5451 from minrk/comment-shortcut
Browse files Browse the repository at this point in the history
check that a handler is actually registered in ShortcutManager.handles
  • Loading branch information
ivanov committed Mar 27, 2014
2 parents 1248e0d + c8db6cd commit 0ca3a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/html/static/base/js/keyboard.js
Expand Up @@ -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 {
Expand Down

0 comments on commit 0ca3a76

Please sign in to comment.