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)
This commit is contained in:
parent
32277d9433
commit
8a19ea8ffc
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ DynMap.prototype = {
|
||||||
value: ''
|
value: ''
|
||||||
})
|
})
|
||||||
.keydown(function(event) {
|
.keydown(function(event) {
|
||||||
if (event.keyCode === '13') {
|
if (event.keyCode == '13') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
sendChat(chatinput.val());
|
sendChat(chatinput.val());
|
||||||
chatinput.val('');
|
chatinput.val('');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue