From: Alexander Ebert Date: Tue, 30 Jul 2013 13:36:53 +0000 (+0200) Subject: Fixed JavaScript error X-Git-Tag: 2.0.0_Beta_6~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6aa9713372aeb6850051df84831d77992123bd1f;p=GitHub%2FWoltLab%2FWCF.git Fixed JavaScript error --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 6359131686..580883189a 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -7656,7 +7656,7 @@ WCF.EditableItemList = Class.extend({ _keyDown: function(event) { // 188 = [,] if (event === null || event.which === 188 || event.which === $.ui.keyCode.ENTER) { - if (event.which === $.ui.keyCode.ENTER && this._search) { + if (event !== null && event.which === $.ui.keyCode.ENTER && this._search) { if (this._search._itemIndex !== -1) { return false; }