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:
commit
4198b23231
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user