mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +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 ;)
|
||||
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