add: bookmarkItem.setAttribute("accesskey", document.getElementById('oneBookmark').getAttribute("accesskey")); 
context: function updateItems(){  var count = gHistoryTree.treeBoxObject.view.selection.count;  var openItem = document.getElementById("miOpen");  var bookmarkItem = document.getElementById("miAddBookmark");  var copyLocationItem = document.getElementById("miCopyLinkLocation");  var sep1 = document.getElementById("pre-bookmarks-separator");  var sep2 = document.getElementById("post-bookmarks-separator");  var openItemInNewWindow = document.getElementById("miOpenInNewWindow");  var openItemInNewTab = document.getElementById("miOpenInNewTab");  var collapseExpandItem = document.getElementById("miCollapseExpand");  if (count > 1) {    var hasContainer = false;    if (gHistoryGrouping != "none") {      var min = new Object();       var max = new Object();      var rangeCount = gHistoryTree.treeBoxObject.view.selection.getRangeCount();      for (var i = 0; i < rangeCount; ++i) {        gHistoryTree.treeBoxObject.view.selection.getRangeAt(i, min, max);        for (var k = max.value; k >= min.value; --k) {          if (isContainer(gHistoryTree, k)) {            hasContainer = true;            break;          }        }      }    }    collapseExpandItem.hidden = true;    openItem.hidden = true;    if (hasContainer) {   // several items selected, folder(s) amongst them      bookmarkItem.hidden = true;      copyLocationItem.hidden = true;      sep1.hidden = true;      sep2.hidden = true;      openItemInNewWindow.hidden = true;      openItemInNewTab.hidden = true;    }    else {                // several items selected, but no folder      bookmarkItem.hidden = false;      copyLocationItem.hidden = false;      sep1.hidden = false;      sep2.hidden = false;      bookmarkItem.setAttribute("label", document.getElementById('multipleBookmarks').getAttribute("label"));      openItem.removeAttribute("default");      openItemInNewWindow.setAttribute("default", "true");      openItemInNewWindow.hidden = false;      openItemInNewTab.hidden = false;    }  }  else {    openItemInNewWindow.hidden = false;    bookmarkItem.setAttribute("label", document.getElementById('oneBookmark').getAttribute("label"));    sep2.hidden = false;    var currentIndex = gHistoryTree.currentIndex;    if (isContainer(gHistoryTree, currentIndex)) {   // one folder selected        openItem.hidden = true;        openItem.removeAttribute("default");        openItemInNewWindow.removeAttribute("default");        openItemInNewTab.hidden = true;        collapseExpandItem.hidden = false;        collapseExpandItem.setAttribute("default", "true");        bookmarkItem.hidden = true;        copyLocationItem.hidden = true;        sep1.hidden = true;        if (isContainerOpen(gHistoryTree, currentIndex)) {          collapseExpandItem.setAttribute("label", gHistoryBundle.getString("collapseLabel"));          collapseExpandItem.setAttribute("accesskey", gHistoryBundle.getString("collapseAccesskey"));        }        else {          collapseExpandItem.setAttribute("label", gHistoryBundle.getString("expandLabel"));          collapseExpandItem.setAttribute("accesskey", gHistoryBundle.getString("expandAccesskey"));                  }        return true;    }                                                // one entry selected (not a folder)    openItemInNewTab.hidden = false;    collapseExpandItem.hidden = true;    bookmarkItem.hidden = false;    copyLocationItem.hidden = false;    sep1.hidden = false;    if (!getTopWin()) {        openItem.hidden = true;        openItem.removeAttribute("default");        openItemInNewWindow.setAttribute("default", "true");    }    else {      openItem.hidden = false;      if (!openItem.getAttribute("default"))        openItem.setAttribute("default", "true");      openItemInNewWindow.removeAttribute("default");    }  }  return true;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/72f2665a25b828aa9973911ff09cf835a74b1fa0/history.js/buggy/xpfe/components/history/resources/history.js