1
0
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:
Thomas Tanghus 2012-12-17 21:03:10 +01:00
parent 4aac9edf82
commit fc9fddc6c0

View File

@ -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));
};
/**