#ifndef EL__JS_SPIDERMONKEY_KEYBOARD_H
#define EL__JS_SPIDERMONKEY_KEYBOARD_H

#include "js/spidermonkey/util.h"

struct term_event;

extern JSClass keyboardEvent_class;
extern JSPropertySpec keyboardEvent_props[];
extern const spidermonkeyFunctionSpec keyboardEvent_funcs[];

bool keyboardEvent_constructor(JSContext* ctx, unsigned argc, JS::Value* vp);

JSObject *get_keyboardEvent(JSContext *ctx, struct term_event *ev);

#endif
