B2G/gecko/testing/peptest/peptest/extension/resource/mozmill/stdlib/EventUtils.js
/**
 * Send the non-character key aKey to the node with id aTarget. If aTarget is
 * not provided, use "target".
 * The name of the key should be the part that comes after "DOM_VK_" in the
 *   KeyEvent constant name for this key.
 * No modifiers are handled at this point.
 *
 * Returns true if the keypress event was accepted (no calls to preventDefault
 * or anything like that), false otherwise.
 */
Send the non-character key aKey to the node with id aTarget. If aTarget is
not provided, use "target".
The name of the key should be the part that comes after "DOM_VK_" in the
KeyEvent constant name for this key.
No modifiers are handled at this point.

Returns true if the keypress event was accepted (no calls to preventDefault
or anything like that), false otherwise.
Send the non - character key aKey to the node with id aTarget . If aTarget is not provided use " target " . The name of the key should be the part that comes after " DOM_VK_ " in the KeyEvent constant name for this key . No modifiers are handled at this point . Returns true if the keypress event was accepted ( no calls to preventDefault or anything like that ) false otherwise .
function sendKey(aKey, aTarget, aWindow) {
  if (!aWindow)
    aWindow = window;
  var keyName = "DOM_VK_" + aKey.toUpperCase();
  if (!getKeyEvent(aWindow)[keyName]) {
    throw "Unknown key: " + keyName;
  }
  return __doEventDispatch(aTarget, 0, getKeyEvent(aWindow)[keyName], false);
}
function sendKey ( aKey , aTarget , aWindow ) { if ( ! aWindow ) aWindow = window ; var keyName = "DOM_VK_" + aKey . toUpperCase ( ) ; if ( ! getKeyEvent ( aWindow ) [ keyName ] ) { throw "Unknown key: " + keyName ; } return __doEventDispatch ( aTarget , 0 , getKeyEvent ( aWindow ) [ keyName ] , false ) ; }
Send the non-character key aKey to the node with id aTarget.
Send the non - character key aKey to the node with id aTarget .