WebIDLpedia

KeyboardEventInit dictionary

Definition

UI Events defines KeyboardEventInit



dictionary KeyboardEventInit : EventModifierInit {
  DOMString key = "";
  DOMString code = "";
  unsigned long location = 0;
  boolean repeat = false;
  boolean isComposing = false;
};

partial dictionary KeyboardEventInit {
  // The following support legacy user agents
  unsigned long charCode = 0;
  unsigned long keyCode = 0;
};
Consolidated IDL (across partials)


dictionary KeyboardEventInit : EventModifierInit {
  DOMString key = "";
  DOMString code = "";
  unsigned long location = 0;
  boolean repeat = false;
  boolean isComposing = false;
  // The following support legacy user agents
  unsigned long charCode = 0;
  unsigned long keyCode = 0;
};

Referring IDL interfaces/dictionaries