I am working with the FX 2.0 code base. I do not see a initKeyboardEvent, but I do see initKeyEvent

dom3 spec FX initKeyboardEvent( initKeyEvent(

  typeArg of type DOMString                           in DOMString typeArg,
  canBubbleArg of type boolean                        in boolean canBubbleArg,
  cancelableArg of type boolean                       in boolean cancelableArg,
  viewArg of type views::AbstractView                 in nsIDOMAbstractView viewArg,
  keyIdentifierArg of type DOMString                  in boolean ctrlKeyArg,
  keyLocationArg of type unsigned long                in boolean altKeyArg,
  modifiersList of type DOMString);                   in boolean shiftKeyArg,
                                                      in boolean metaKeyArg,
                                                      in unsigned long keyCodeArg,
                                                      in unsigned long charCodeArg);



I do not know what to do next. It appears we need to change either the documentation or the api. I like the way the initKeyEvent explicitly lays out the keyboard control keys and I do not understand what the keyLocation is supposed to do for initiating a keyboard event.

We should document what is implemented in Gecko. Our implementation of keyboard events predates the spec, and the spec is not even finished. --Nickolay 08:29, 23 September 2006 (PDT)
Our implementation of keyboard events is actually based on the key events spec in early versions of DOM 2 Events, later removed from that spec. -David Baron 09:34, 23 September 2006 (PDT)
See event.initKeyEvent [en-US].  --User:Brettz9 [en-US] 01 January 2014

Document Tags and Contributors

 Contributors to this page: Brettz9, DBaron, Nickolay, Gary.johnson.53
 Last updated by: Brettz9,