third_party/js/mozmill/shared-modules/downloads.js
function downloadManager_open(controller, shortcut) {
    if (shortcut) {
      if (mozmill.isLinux) {
        var cmdKey = utils.getEntity(this.getDtds(), "downloadsUnix.commandkey");
        controller.keypress(null, cmdKey, {ctrlKey: true, shiftKey: true});
      } else {
        var cmdKey = utils.getEntity(this.getDtds(), "downloads.commandkey");
        controller.keypress(null, cmdKey, {accelKey: true});
      }
    } else {
      controller.click(new elementslib.Elem(controller.menus["tools-menu"].menu_openDownloads));
    }

    controller.sleep(500);
    this.waitForOpened(controller);
  }
function downloadManager_open(controller, shortcut) {
    if (shortcut) {
      if (mozmill.isLinux) {
        var cmdKey = utils.getEntity(this.getDtds(), "downloadsUnix.commandkey");
        controller.keypress(null, cmdKey, {ctrlKey: true, shiftKey: true});
      } else {
        var cmdKey = utils.getEntity(this.getDtds(), "downloads.commandkey");
        controller.keypress(null, cmdKey, {accelKey: true});
      }
    } else {
      controller.click(new elementslib.Elem(controller.menus["tools-menu"].menu_openDownloads));
    }

    controller.sleep(500);
    this.waitForOpened(controller);
  }
function downloadManager_open ( controller , shortcut ) { if ( shortcut ) { if ( mozmill . isLinux ) { var cmdKey = utils . getEntity ( this . getDtds ( ) , "downloadsUnix.commandkey" ) ; controller . keypress ( null , cmdKey , { ctrlKey : true , shiftKey : true } ) ; } else { var cmdKey = utils . getEntity ( this . getDtds ( ) , "downloads.commandkey" ) ; controller . keypress ( null , cmdKey , { accelKey : true } ) ; } } else { controller . click ( new elementslib . Elem ( controller . menus [ "tools-menu" ] . menu_openDownloads ) ) ; } controller . sleep ( 500 ) ; this . waitForOpened ( controller ) ; }
Open the Download Manager

@param {MozMillController} controller
MozMillController of the window to operate on
@param {boolean} shortcut
If true the keyboard shortcut is used
Open the Download Manager