Adding pref UI (debug pane) to control modifier and menu access keys (49909). r=matt, sr=alecf, a=asa

This commit is contained in:
mcafee%netscape.com 2001-06-13 23:58:54 +00:00
parent ed7ab86b1f
commit 381b61c5fc
2 changed files with 32 additions and 2 deletions

View File

@ -36,7 +36,7 @@
var _elementIDs = ["nglayoutDebugWindow",
"debugXULBoxes", "nglayoutDebugUseXBLForms",
"nglayoutDebugEnableXPCOMRefcntLog", "showAboutAsStupidModalWindow",
"browserEnableTBDnD"];
"browserEnableTBDnD", "acceleratorKeyValue", "menuAccessKeyValue"];
]]>
</script>
@ -71,5 +71,31 @@
</titledbox>
<titledbox orient="vertical">
<label value="&accelerators.label;"/>
<label value="&acceleratorsBlurb.label;"/>
<grid flex="1">
<columns>
<column/>
<column/>
</columns>
<rows>
<row autostretch="never">
<text class="label" value="&acceleratorKey.label;" for="acceleratorKeyValue"/>
<textbox id="acceleratorKeyValue" pref="true" preftype="int"
prefstring="ui.key.accelKey" prefattribute="value" size="5"/>
</row>
<row autostretch="never">
<text class="label" value="&menuAccessKey.label;" for="menuAccessKeyValue"/>
<textbox id="menuAccessKeyValue" pref="true" preftype="int"
prefstring="ui.key.menuAccessKey" prefattribute="value" size="5"/>
</row>
</rows>
</grid>
</titledbox>
</window>

View File

@ -17,4 +17,8 @@
<!ENTITY debugWindow.label "debug window">
<!ENTITY debugXULBox.label "debug XUL boxes">
<!-- Accelerator Key -->
<!ENTITY accelerators.label "Keyboard accelerators">
<!ENTITY acceleratorsBlurb.label "A value of zero disables a modifier key.">
<!ENTITY acceleratorKey.label "Accelerator key:">
<!ENTITY menuAccessKey.label "Menu access key:">