2 <?xml-stylesheet href=
"chrome://global/skin/global.css" type=
"text/css"?>
3 <window class=
"reftest-wait" onload=
"changeKeys()"
4 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
6 <menuitem id=
"m1" label=
"Menu1" key=
"keyone"/>
7 <menuitem id=
"m2" label=
"Menu2" key=
"keytwo"/>
8 <menuitem id=
"m3" label=
"Menu3"/>
9 <menuitem id=
"m4" label=
"Menu4"/>
10 <menuitem id=
"m5" label=
"Menu5"/>
11 <menuitem id=
"m6" label=
"Menu6" key=
"keythree" acceltext=
"Text"/>
12 <menuitem id=
"m7" label=
"Menu7" key=
"keythree" acceltext=
"Text"/>
13 <menuitem id=
"m8" label=
"Menu8" key=
"keythree" acceltext=
"Text"/>
14 <menuitem id=
"m9" label=
"Menu9" key=
"keytwo"/>
19 document.getElementById(
"m1").setAttribute(
"key",
"keytwo");
20 document.getElementById(
"m2").removeAttribute(
"key");
21 document.getElementById(
"m3").setAttribute(
"key",
"keythree");
23 document.getElementById(
"m4").setAttribute(
"key",
"keyone");
24 document.getElementById(
"m4").setAttribute(
"acceltext",
"Text");
26 document.getElementById(
"m5").setAttribute(
"acceltext",
"Text");
27 document.getElementById(
"m5").setAttribute(
"key",
"keytwo");
29 document.getElementById(
"m6").removeAttribute(
"key");
30 document.getElementById(
"m7").removeAttribute(
"acceltext");
32 document.getElementById(
"m8").removeAttribute(
"key");
33 document.getElementById(
"m8").removeAttribute(
"acceltext");
35 document.getElementById(
"m9").removeAttribute(
"key");
37 document.documentElement.className='';
42 <key id=
"keyone" key=
"Z" modifiers=
"control"/>
43 <key id=
"keytwo" key=
"Y" modifiers=
"control"/>
44 <key id=
"keythree" key=
"X" modifiers=
"accel"/>