Continue fixing things
This commit is contained in:
parent
521c786cdc
commit
1aa464caa5
6 changed files with 154 additions and 26 deletions
|
|
@ -95,6 +95,14 @@ $("#usercount").mouseleave(function () {
|
|||
$("#messagebuffer").mouseenter(function() { SCROLLCHAT = false; });
|
||||
$("#messagebuffer").mouseleave(function() { SCROLLCHAT = true; });
|
||||
|
||||
$("#guestname").keydown(function (ev) {
|
||||
if (ev.keyCode === 13) {
|
||||
socket.emit("login", {
|
||||
name: $("#guestname").val()
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$("#chatline").keydown(function(ev) {
|
||||
// Enter/return
|
||||
if(ev.keyCode == 13) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue