Enable within-session XUL caching, since there is no reason not to
[conkeror.git] / content / keyboard-setup.xul
blobe5b6c29f82a3f0c505a61a786ce098d19ed96580
1 <?xml version="1.0"?>
3 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
5 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
6 onload="init();"
7 contenttitlesetting="false"
8 title="Conkeror Keyboard Setup"
9 id="keyboard-setup"
10 width="640" height="480"
11 persist="screenX screenY width height sizemode">
13 <script type="application/javascript;version=1.8" src="chrome://conkeror/content/keyboard-setup.js"/>
15 <vbox flex="1">
16 <description>
17 Limitations in the Mozilla key handling facilities make it
18 difficult to robustly map from key press events to a character
19 code. In particular, to do this, Conkeror depends on a
20 mapping table that specifies how the combination of a
21 particular keycode and shift modifier state maps to a
22 character code. A default table suitable for certain US
23 keyboard layouts is used by default in Conkeror, but this tool
24 can be used to generate a correct mapping table for your
25 keyboard layout. To do this, click on the "Clear all
26 mappings" button, then type every key both with and without
27 the shift modifier, and then click "Save to preferences".
28 Make sure that "Caps Lock" is off. You must restart Conkeror
29 for any new mapping table to take effect after you save it.
30 </description>
31 <hbox>
32 <button label="Load from preferences" oncommand="load();"/>
33 <button label="Save to preferences" oncommand="save();"/>
34 <button label="Clear preference" oncommand="clear_preference();"/>
35 <button label="Clear all mappings" oncommand="clear();"/>
36 <button label="Reset to defaults" oncommand="reset();"/>
37 </hbox>
39 <listbox id="mapping_list" flex="1">
40 <listhead>
41 <listheader label="Keycode"/>
42 <listheader label="Keycode name"/>
43 <listheader label="Shift?"/>
44 <listheader label="Charcode"/>
45 <listheader label="Character"/>
46 </listhead>
47 </listbox>
48 <hbox>
49 <label id="message" label="" flex="1"/>
50 <label id="count" label=""/>
51 </hbox>
52 </vbox>
53 </window>