mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-02-12 06:54:28 +01:00
Contacts: Also check keypress event.
This commit is contained in:
parent
4aac9edf82
commit
fc9fddc6c0
@ -77,7 +77,8 @@ Array.prototype.clean = function(deleteValue) {
|
|||||||
|
|
||||||
// Keep it DRY ;)
|
// Keep it DRY ;)
|
||||||
var wrongKey = function(event) {
|
var wrongKey = function(event) {
|
||||||
return (event.type === 'keydown' && (event.keyCode !== 32 && event.keyCode !== 13));
|
return ((event.type === 'keydown' || event.type === 'keypress')
|
||||||
|
&& (event.keyCode !== 32 && event.keyCode !== 13));
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user