mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-27 20:58:40 +01:00
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
1d2cce6caa
commit
cc0bb3b509
@ -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('');
|
||||
|
Loading…
Reference in New Issue
Block a user