From a42d2b9314bc1e17e01b22e9e45ad684f86e7c4e Mon Sep 17 00:00:00 2001 From: "kairo%kairo.at" Date: Sat, 22 Feb 2003 13:54:28 +0000 Subject: [PATCH] bug 134935 - Collapse and Expand in History context menu share the same accesskey entry, r=dean_tessman, sr=dmose, checking in for piersc@cogs.susx.ac.uk git-svn-id: svn://10.0.0.236/trunk@138178 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/components/history/resources/history.js | 8 ++++++-- .../components/history/resources/historyTreeOverlay.xul | 2 +- .../history/resources/locale/en-US/history.properties | 3 ++- .../history/resources/locale/en-US/historyTreeOverlay.dtd | 1 - 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/mozilla/xpfe/components/history/resources/history.js b/mozilla/xpfe/components/history/resources/history.js index 677495aa6c7..b832a1da48b 100644 --- a/mozilla/xpfe/components/history/resources/history.js +++ b/mozilla/xpfe/components/history/resources/history.js @@ -417,10 +417,14 @@ function updateItems() bookmarkItem.setAttribute("hidden", "true"); copyLocationItem.setAttribute("hidden", "true"); sep1.setAttribute("hidden", "true"); - if (isContainerOpen(gHistoryTree, currentIndex)) + if (isContainerOpen(gHistoryTree, currentIndex)) { collapseExpandItem.setAttribute("label", gHistoryBundle.getString("collapseLabel")); - else + collapseExpandItem.setAttribute("accesskey", gHistoryBundle.getString("collapseAccesskey")); + } + else { collapseExpandItem.setAttribute("label", gHistoryBundle.getString("expandLabel")); + collapseExpandItem.setAttribute("accesskey", gHistoryBundle.getString("expandAccesskey")); + } return true; } collapseExpandItem.setAttribute("hidden", "true"); diff --git a/mozilla/xpfe/components/history/resources/historyTreeOverlay.xul b/mozilla/xpfe/components/history/resources/historyTreeOverlay.xul index f30c48a04c9..5870103a4b5 100644 --- a/mozilla/xpfe/components/history/resources/historyTreeOverlay.xul +++ b/mozilla/xpfe/components/history/resources/historyTreeOverlay.xul @@ -54,7 +54,7 @@ - + -