From cc0bb3b50930c78128c21a02dbd32c61ebff3bab Mon Sep 17 00:00:00 2001 From: Arthur Mayer Date: Wed, 23 Feb 2011 21:26:51 +0100 Subject: [PATCH] fixed chat sending messages from web. event.keyCode === '13', where the strict equal operator seem to break safari, firefox and chrome (different value types? keydown event seem not to provide either a string nor an integer) --- web/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/map.js b/web/map.js index 53d48bf0..6671b4fc 100644 --- a/web/map.js +++ b/web/map.js @@ -208,7 +208,7 @@ DynMap.prototype = { value: '' }) .keydown(function(event) { - if (event.keyCode === '13') { + if (event.keyCode == '13') { event.preventDefault(); sendChat(chatinput.val()); chatinput.val('');