blob: a6bde4c5dde9099137a53d2574c2b1eff6991990 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { client } from "../client";
/**
* Triggered when the Return key is pressed on the out-of-character chat input box.
* @param {KeyboardEvent} event
*/
export function onOOCEnter(event: KeyboardEvent) {
console.log('FUCK')
if (event.keyCode === 13) {
client.sendOOC(
(<HTMLInputElement>document.getElementById("client_oocinputbox")).value
);
(<HTMLInputElement>document.getElementById("client_oocinputbox")).value =
"";
}
}
window.onOOCEnter = onOOCEnter;
|