Merge pull request #525 from howey-aus/use-native-default-prevented

On keydown, check for e.isDefaultPrevented() [jquery] and e.defaultPrevented [native]
This commit is contained in:
Jun 2016-06-23 10:04:22 +09:00 committed by GitHub
commit 4198b23231

View File

@ -40,7 +40,7 @@ function bindKeyboardHandler(element, i) {
}
i.event.bind(i.ownerDocument, 'keydown', function (e) {
if (e.isDefaultPrevented && e.isDefaultPrevented()) {
if (e.isDefaultPrevented && e.isDefaultPrevented() || e.defaultPrevented) {
return;
}