Skip to content

Commit 4f1ace4

Browse files
author
kawabata_satoshi
committed
Add method stopCallback evaluation
1 parent 825ce50 commit 4f1ace4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mousetrap.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,10 @@
982982
return false;
983983
}
984984

985+
return Mousetrap.stopCallbackElements(element);
986+
};
987+
988+
Mousetrap.prototype.stopCallbackElements = function(element) {
985989
// stop for input, select, and textarea
986990
return element.tagName == 'INPUT' || element.tagName == 'SELECT' || element.tagName == 'TEXTAREA' || element.isContentEditable;
987991
};

0 commit comments

Comments
 (0)