initKeyboardEvent method

void initKeyboardEvent(
  1. String typeArg, [
  2. bool bubblesArg,
  3. bool cancelableArg,
  4. Window? viewArg,
  5. String keyArg,
  6. int locationArg,
  7. bool ctrlKey,
  8. bool altKey,
  9. bool shiftKey,
  10. bool metaKey,
])

The KeyboardEvent.initKeyboardEvent() method initializes the attributes of a keyboard event object. This method was introduced in draft of DOM Level 3 Events, but deprecated in newer draft. Gecko won't support this feature since implementing this method as experimental broke existing web apps (see Firefox bug 999645). Web applications should use constructor instead of this if it's available.

Implementation

external void initKeyboardEvent(
  String typeArg, [
  bool bubblesArg,
  bool cancelableArg,
  Window? viewArg,
  String keyArg,
  int locationArg,
  bool ctrlKey,
  bool altKey,
  bool shiftKey,
  bool metaKey,
]);