Bug 1149179 - Use separate access keys for Enter and Exit in Reader View. r=me, a=RyanVM

This commit is contained in:
Jared Wein 2015-03-30 11:32:00 -04:00
parent e803dcfc9a
commit 3e44325c80
2 changed files with 4 additions and 2 deletions

View File

@ -135,6 +135,7 @@ let ReaderParent = {
button.setAttribute("tooltiptext", closeText);
command.setAttribute("label", closeText);
command.setAttribute("hidden", false);
command.setAttribute("accesskey", gStringBundle.GetStringFromName("readerView.close.accesskey"));
} else {
button.removeAttribute("readeractive");
button.hidden = !browser.isArticle;
@ -142,8 +143,8 @@ let ReaderParent = {
button.setAttribute("tooltiptext", enterText);
command.setAttribute("label", enterText);
command.setAttribute("hidden", !browser.isArticle);
command.setAttribute("accesskey", gStringBundle.GetStringFromName("readerView.enter.accesskey"));
}
command.setAttribute("accesskey", gStringBundle.GetStringFromName("readerView.accesskey"));
},
toggleReaderMode: function(event) {

View File

@ -31,5 +31,6 @@ aboutReader.footer.deleteThisArticle=Delete this article
# These are used for the Reader View toolbar button and the menuitem within the
# View menu.
readerView.enter=Enter Reader View
readerView.enter.accesskey=R
readerView.close=Close Reader View
readerView.accesskey=R
readerView.close.accesskey=R