Skip to content

Commit

Permalink
Changed to ignore elements that have "contentEditable" set to "true"
Browse files Browse the repository at this point in the history
  • Loading branch information
chustar committed Feb 16, 2012
1 parent 2bc49e9 commit ece7f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
handleObj.handler = function( event ) {
// Don't fire in text-accepting inputs that we didn't directly bind to
if ( this !== event.target && (/textarea|select/i.test( event.target.nodeName ) ||
event.target.type === "text") ) {
event.target.type === "text" || $(event.target).prop('contenteditable') == 'true' )) {
return;
}

Expand Down

0 comments on commit ece7f43

Please sign in to comment.