Bug 1306296 - Add shortcut key to Simplify Page feature. r=mconley
authorLeandro Manica <leandromanica@hp.com>
Fri, 14 Oct 2016 12:01:00 -0400
changeset 318144 a26cfff8041b76769b39fa78d4502b6d469f4cb2
parent 318143 5dbc342de3c025f43c80549a52db7b38b70f5dbb
child 318145 daf6fc1090f7845e08c8a1b39c218fc4c8f7f5c5
push id33211
push usercbook@mozilla.com
push dateMon, 17 Oct 2016 09:38:38 +0000
treeherderautoland@e4ef6fa03aa8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1306296
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1306296 - Add shortcut key to Simplify Page feature. r=mconley
toolkit/components/printing/content/printPreviewBindings.xml
toolkit/locales/en-US/chrome/global/printPreview.dtd
--- a/toolkit/components/printing/content/printPreviewBindings.xml
+++ b/toolkit/components/printing/content/printPreviewBindings.xml
@@ -84,16 +84,17 @@
         <xul:toolbarbutton label="&landscape.label;" 
           accesskey="&landscape.accesskey;"
           type="radio" group="orient" class="toolbar-landscape-page tabbable"
           oncommand="parentNode.parentNode.orient('landscape');"/>
       </xul:hbox>
 
       <xul:toolbarseparator class="toolbarseparator-primary"/>
       <xul:checkbox label="&simplifyPage.label;" checked="false" disabled="true"
+        accesskey="&simplifyPage.accesskey;"
         tooltiptext-disabled="&simplifyPage.disabled.tooltip;"
         tooltiptext-enabled="&simplifyPage.enabled.tooltip;"
         oncommand="this.parentNode.simplify();"/>
 
       <xul:toolbarseparator class="toolbarseparator-primary"/>
       <xul:button label="&close.label;" accesskey="&close.accesskey;"
         oncommand="PrintUtils.exitPrintPreview();" icon="close"/>
       <xul:data value="&customPrompt.title;"/>
--- a/toolkit/locales/en-US/chrome/global/printPreview.dtd
+++ b/toolkit/locales/en-US/chrome/global/printPreview.dtd
@@ -28,15 +28,16 @@
 <!ENTITY p125.label           "125&#037;">
 <!ENTITY p150.label           "150&#037;">
 <!ENTITY p175.label           "175&#037;">
 <!ENTITY p200.label           "200&#037;">
 <!ENTITY Custom.label         "Custom…">
 <!ENTITY ShrinkToFit.label    "Shrink To Fit">
 <!ENTITY customPrompt.title   "Custom Scale…">
 <!ENTITY simplifyPage.label   "Simplify Page">
+<!ENTITY simplifyPage.accesskey "i">
 <!ENTITY simplifyPage.enabled.tooltip  "Change layout for easier reading">
 <!ENTITY simplifyPage.disabled.tooltip "This page cannot be automatically simplified">
 
 <!ENTITY homearrow.tooltip    "First page">
 <!ENTITY endarrow.tooltip     "Last page">
 <!ENTITY nextarrow.tooltip    "Next page">
 <!ENTITY previousarrow.tooltip "Previous page">