vgui/20-command-submitted-event.js
/**
* Emitted by consoledialog.cpp
*/
export class CommandSubmittedEvent extends SourceEvent {
constructor(command) {
super("CommandSubmitted", {command: command});
}
/**
* @override
*/
get canEscape() { return true; }
/**
* Creates this type based on a source engine KeyValues entry
*/
static __fromSource(type, data)
{
const result = new CommandSubmittedEvent();
result.data = data;
return result;
}
}
SourceEvent.__eventTypes["CommandSubmitted"] = CommandSubmittedEvent;