blob: a24928b243910e7c1940845b8a2230792e53cc8b (
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) {
if (event.keyCode === 13) {
client.sendOOC(
(<HTMLInputElement>document.getElementById("client_oocinputbox")).value
);
(<HTMLInputElement>document.getElementById("client_oocinputbox")).value =
"";
}
}
window.onOOCEnter = onOOCEnter;
|