KeyboardEvent
Generated from idl/uievents.webidl when the site was built at 7aa23e2.
KeyboardEvent is an interface in idl/uievents.webidl, inheriting UIEvent, exposed in Window. What it does is on MDN; this page says what niso has of it.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| Keyboard events | Widely available | Partial 7.7% 29 of 372 subtests pass | 12 |
Members
Section titled “Members”constructor
Section titled “constructor”constructor(DOMString type, optional KeyboardEventInit eventInitDict = {});int32_t niso_keyboard_event_new(niso_dom* dom, const char* type, size_t type_len, const niso_keyboard_event_init* event_init_dict, niso_handle* out);DOM_KEY_LOCATION_STANDARD
Section titled “DOM_KEY_LOCATION_STANDARD”const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00;DOM_KEY_LOCATION_LEFT
Section titled “DOM_KEY_LOCATION_LEFT”const unsigned long DOM_KEY_LOCATION_LEFT = 0x01;DOM_KEY_LOCATION_RIGHT
Section titled “DOM_KEY_LOCATION_RIGHT”const unsigned long DOM_KEY_LOCATION_RIGHT = 0x02;DOM_KEY_LOCATION_NUMPAD
Section titled “DOM_KEY_LOCATION_NUMPAD”const unsigned long DOM_KEY_LOCATION_NUMPAD = 0x03;readonly attribute DOMString key;int32_t niso_keyboard_event_get_key(niso_dom* dom, niso_handle self, niso_str* out);readonly attribute DOMString code;int32_t niso_keyboard_event_get_code(niso_dom* dom, niso_handle self, niso_str* out);location
Section titled “location”readonly attribute unsigned long location;int32_t niso_keyboard_event_get_location(niso_dom* dom, niso_handle self, uint32_t* out);ctrlKey
Section titled “ctrlKey”readonly attribute boolean ctrlKey;int32_t niso_keyboard_event_get_ctrl_key(niso_dom* dom, niso_handle self, bool* out);shiftKey
Section titled “shiftKey”readonly attribute boolean shiftKey;int32_t niso_keyboard_event_get_shift_key(niso_dom* dom, niso_handle self, bool* out);altKey
Section titled “altKey”readonly attribute boolean altKey;int32_t niso_keyboard_event_get_alt_key(niso_dom* dom, niso_handle self, bool* out);metaKey
Section titled “metaKey”readonly attribute boolean metaKey;int32_t niso_keyboard_event_get_meta_key(niso_dom* dom, niso_handle self, bool* out);repeat
Section titled “repeat”readonly attribute boolean repeat;int32_t niso_keyboard_event_get_repeat(niso_dom* dom, niso_handle self, bool* out);isComposing
Section titled “isComposing”readonly attribute boolean isComposing;int32_t niso_keyboard_event_get_is_composing(niso_dom* dom, niso_handle self, bool* out);getModifierState()
Section titled “getModifierState()”boolean getModifierState(DOMString keyArg);int32_t niso_keyboard_event_get_modifier_state(niso_dom* dom, niso_handle self, const char* key_arg, size_t key_arg_len, bool* out);charCode
Section titled “charCode”readonly attribute unsigned long charCode;int32_t niso_keyboard_event_get_char_code(niso_dom* dom, niso_handle self, uint32_t* out);keyCode
Section titled “keyCode”readonly attribute unsigned long keyCode;int32_t niso_keyboard_event_get_key_code(niso_dom* dom, niso_handle self, uint32_t* out);