From e6d2c4932a70bea7aee0b3fdd1cc256d547df96f Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Thu, 24 Feb 2011 00:38:46 +0100 Subject: [PATCH] Reverted back to "== '13'" like flames suggested before. This seemed to raise incompatiblities for Firefox and Safari on Mac, not on Linux. --- web/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/map.js b/web/map.js index 4f1b2a1b..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('');