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)