mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-03-12 23:07:20 +08:00
Merge pull request #9 from JohnnyCrazy/chat_patch_3
Fixed some chat stuff
This commit is contained in:
commit
ee0fe0deb8
@ -130,10 +130,6 @@ window.APP = {
|
||||
input.style.height = `${input.scrollHeight + 2}px`;
|
||||
},
|
||||
send(e) {
|
||||
if (e.shiftKey) {
|
||||
this.message += '\n';
|
||||
this.resize();
|
||||
} else {
|
||||
if(this.message !== '') {
|
||||
post('http://chat/chatResult', JSON.stringify({
|
||||
message: this.message,
|
||||
@ -144,7 +140,6 @@ window.APP = {
|
||||
} else {
|
||||
this.hideInput(true);
|
||||
}
|
||||
}
|
||||
},
|
||||
hideInput(canceled = false) {
|
||||
if (canceled) {
|
||||
|
@ -83,6 +83,10 @@ textarea {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
textarea:focus, input:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.msg {
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
@ -37,6 +37,7 @@
|
||||
ref="input"
|
||||
type="text"
|
||||
autofocus
|
||||
spellcheck="false"
|
||||
@keyup.esc="hideInput"
|
||||
@keyup="keyUp"
|
||||
@keydown="keyDown"
|
||||
|
Loading…
x
Reference in New Issue
Block a user