Rev 3131 | Rev 3548 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1013 | bpr | 1 | /* ******************************************************************** |
2 | ********************************************************************** |
||
3262 | bpr | 3 | * HTML Virtual Keyboard Interface Script - v1.36 |
4 | * Copyright (c) 2010 - GreyWyvern |
||
1013 | bpr | 5 | * |
6 | * - Licenced for free distribution under the BSDL |
||
7 | * http://www.opensource.org/licenses/bsd-license.php |
||
8 | * |
||
9 | * Add a script-driven keyboard interface to text fields, password |
||
10 | * fields and textareas. |
||
11 | * |
||
12 | * See http://www.greywyvern.com/code/javascript/keyboard for examples |
||
13 | * and usage instructions. |
||
14 | * |
||
3262 | bpr | 15 | * Version 1.36 - June 2, 2010 |
16 | * - Add user resize control |
||
17 | * - Automatically choose keyboard layout based on lang attribute |
||
1013 | bpr | 18 | * |
19 | * See full changelog at: |
||
20 | * http://www.greywyvern.com/code/javascript/keyboard.changelog.txt |
||
21 | * |
||
22 | * Keyboard Credits |
||
3262 | bpr | 23 | * - Basic Japanese Hiragana/Katakana keyboard layout by Damjan |
3131 | bpr | 24 | * - Ukrainian keyboard layout by Dmitry Nikitin |
25 | * - Macedonian keyboard layout by Damjan Dimitrioski |
||
26 | * - Pashto keyboard layout by Ahmad Wali Achakzai (qamosona.com) |
||
27 | * - Armenian Eastern and Western keyboard layouts by Hayastan Project (www.hayastan.co.uk) |
||
28 | * - Pinyin keyboard layout from a collaboration with Lou Winklemann |
||
29 | * - Kazakh keyboard layout by Alex Madyankin |
||
30 | * - Danish keyboard layout by Verner Kjærsgaard |
||
1220 | bpr | 31 | * - Slovak keyboard layout by Daniel Lara (www.learningslovak.com) |
32 | * - Belarusian, Serbian Cyrillic and Serbian Latin keyboard layouts by Evgeniy Titov |
||
33 | * - Bulgarian Phonetic keyboard layout by Samuil Gospodinov |
||
1013 | bpr | 34 | * - Swedish keyboard layout by Håkan Sandberg |
35 | * - Romanian keyboard layout by Aurel |
||
36 | * - Farsi (Persian) keyboard layout by Kaveh Bakhtiyari (www.bakhtiyari.com) |
||
37 | * - Burmese keyboard layout by Cetanapa |
||
38 | * - Slovenian keyboard layout by Miran Zeljko |
||
39 | * - Hungarian keyboard layout by Antal Sall 'Hiromacu' |
||
40 | * - Arabic keyboard layout by Srinivas Reddy |
||
41 | * - Italian and Spanish (Spain) keyboard layouts by dictionarist.com |
||
42 | * - Lithuanian and Russian keyboard layouts by Ramunas |
||
43 | * - German keyboard layout by QuHno |
||
44 | * - French keyboard layout by Hidden Evil |
||
45 | * - Polish Programmers layout by moose |
||
46 | * - Turkish keyboard layouts by offcu |
||
47 | * - Dutch and US Int'l keyboard layouts by jerone |
||
48 | * |
||
49 | */ |
||
50 | var VKI_attach, VKI_close; |
||
51 | function VKI_buildKeyboardInputs() { |
||
52 | var self = this; |
||
53 | |||
3262 | bpr | 54 | this.VKI_version = "1.36"; |
3131 | bpr | 55 | this.VKI_showVersion = true; |
3262 | bpr | 56 | this.VKI_target = false; |
3131 | bpr | 57 | this.VKI_shift = this.VKI_shiftlock = false; |
58 | this.VKI_altgr = this.VKI_altgrlock = false; |
||
59 | this.VKI_dead = false; |
||
1013 | bpr | 60 | this.VKI_deadkeysOn = false; |
61 | this.VKI_kt = "French"; // Default keyboard layout |
||
3262 | bpr | 62 | this.VKI_langAdapt = true; // Use lang attribute of input to select keyboard |
63 | this.VKI_size = 2; // Default keyboard size (1-5) |
||
64 | this.VKI_sizeAdj = true; // Allow user to adjust keyboard size |
||
1013 | bpr | 65 | this.VKI_clearPasswords = false; // Clear password fields on focus |
1220 | bpr | 66 | this.VKI_imageURI = "keyboard.png"; |
3131 | bpr | 67 | this.VKI_clickless = 0; // 0 = disabled, > 0 = delay in ms |
1013 | bpr | 68 | this.VKI_keyCenter = 3; |
69 | |||
70 | this.VKI_isIE = /*@cc_on!@*/false; |
||
71 | this.VKI_isIE6 = /*@if(@_jscript_version == 5.6)!@end@*/false; |
||
72 | this.VKI_isIElt8 = /*@if(@_jscript_version < 5.8)!@end@*/false; |
||
3262 | bpr | 73 | this.VKI_isWebKit = window.opera; |
74 | this.VKI_isOpera = RegExp("Opera").test(navigator.userAgent); |
||
75 | this.VKI_isMoz = (!this.VKI_isWebKit && navigator.product == "Gecko"); |
||
1013 | bpr | 76 | |
77 | |||
3262 | bpr | 78 | /* ***** i18n text strings ************************************* */ |
79 | this.VKI_i18n = { |
||
80 | '00': "Virtual Keyboard Interface", |
||
81 | '01': "Display virtual keyboard interface", |
||
82 | '02': "Select keyboard layout", |
||
83 | '03': "Dead keys", |
||
84 | '04': "On", |
||
85 | '05': "Off", |
||
86 | '06': "Close the keyboard", |
||
87 | '07': "Clear", |
||
88 | '08': "Clear this input", |
||
89 | '09': "Version", |
||
90 | '10': "Adjust keyboard size" |
||
91 | }; |
||
92 | |||
93 | |||
1013 | bpr | 94 | /* ***** Create keyboards ************************************** */ |
95 | this.VKI_layout = {}; |
||
96 | |||
97 | // - Lay out each keyboard in rows of sub-arrays. Each sub-array |
||
98 | // represents one key. |
||
1220 | bpr | 99 | // |
1013 | bpr | 100 | // - Each sub-array consists of four slots described as follows: |
101 | // example: ["a", "A", "\u00e1", "\u00c1"] |
||
102 | // |
||
103 | // a) Normal character |
||
3131 | bpr | 104 | // A) Character + Shift/Caps |
105 | // \u00e1) Character + Alt/AltGr/AltLk |
||
106 | // \u00c1) Character + Shift/Caps + Alt/AltGr/AltLk |
||
1013 | bpr | 107 | // |
108 | // You may include sub-arrays which are fewer than four slots. |
||
109 | // In these cases, the missing slots will be blanked when the |
||
110 | // corresponding modifier key (Shift or AltGr) is pressed. |
||
111 | // |
||
112 | // - If the second slot of a sub-array matches one of the following |
||
113 | // strings: |
||
3131 | bpr | 114 | // "Tab", "Caps", "Shift", "Enter", "Bksp", |
115 | // "Alt" OR "AltGr", "AltLk" |
||
1013 | bpr | 116 | // then the function of the key will be the following, |
117 | // respectively: |
||
118 | // - Insert a tab |
||
119 | // - Toggle Caps Lock (technically a Shift Lock) |
||
120 | // - Next entered character will be the shifted character |
||
121 | // - Insert a newline (textarea), or close the keyboard |
||
122 | // - Delete the previous character |
||
123 | // - Next entered character will be the alternate character |
||
3131 | bpr | 124 | // - Toggle Alt/AltGr Lock |
1013 | bpr | 125 | // |
126 | // The first slot of this sub-array will be the text to display |
||
127 | // on the corresponding key. This allows for easy localisation |
||
128 | // of key names. |
||
129 | // |
||
130 | // - Layout dead keys (diacritic + letter) should be added as |
||
131 | // arrays of two item arrays with hash keys equal to the |
||
132 | // diacritic. See the "this.VKI_deadkey" object below the layout |
||
133 | // definitions. In each two item child array, the second item |
||
134 | // is what the diacritic would change the first item to. |
||
135 | // |
||
136 | // - To disable dead keys for a layout, simply assign true to the |
||
3131 | bpr | 137 | // DDK property of the layout (DDK = disable dead keys). See the |
138 | // Numpad layout below for an example. |
||
1013 | bpr | 139 | // |
140 | // - Note that any characters beyond the normal ASCII set should be |
||
141 | // entered in escaped Unicode format. (eg \u00a3 = Pound symbol) |
||
142 | // You can find Unicode values for characters here: |
||
143 | // http://unicode.org/charts/ |
||
144 | // |
||
145 | // - To remove a keyboard, just delete it, or comment it out of the |
||
146 | // source code |
||
147 | |||
148 | this.VKI_layout.Arabic = [ // Arabic Keyboard |
||
149 | [["\u0630", "\u0651 "], ["1", "!", "\u00a1", "\u00b9"], ["2", "@", "\u00b2"], ["3", "#", "\u00b3"], ["4", "$", "\u00a4", "\u00a3"], ["5", "%", "\u20ac"], ["6", "^", "\u00bc"], ["7", "&", "\u00bd"], ["8", "*", "\u00be"], ["9", "(", "\u2018"], ["0", ")", "\u2019"], ["-", "_", "\u00a5"], ["=", "+", "\u00d7", "\u00f7"], ["Bksp", "Bksp"]], |
||
150 | [["Tab", "Tab"], ["\u0636", "\u064e"], ["\u0635", "\u064b"], ["\u062b", "\u064f"], ["\u0642", "\u064c"], ["\u0641", "\u0644"], ["\u063a", "\u0625"], ["\u0639", "\u2018"], ["\u0647", "\u00f7"], ["\u062e", "\u00d7"], ["\u062d", "\u061b"], ["\u062c", "\u003c"], ["\u062f", "\u003e"], ["\u005c", "\u007c"]], |
||
151 | [["Caps", "Caps"], ["\u0634", "\u0650"], ["\u0633", "\u064d"], ["\u064a", "\u005d"], ["\u0628", "\u005b"], ["\u0644", "\u0644"], ["\u0627", "\u0623"], ["\u062a", "\u0640"], ["\u0646", "\u060c"], ["\u0645", "\u002f"], ["\u0643", "\u003a"], ["\u0637", "\u0022"], ["Enter", "Enter"]], |
||
152 | [["Shift", "Shift"], ["\u0626", "\u007e"], ["\u0621", "\u0652"], ["\u0624", "\u007d"], ["\u0631", "\u007b"], ["\u0644", "\u0644"], ["\u0649", "\u0622"], ["\u0629", "\u2019"], ["\u0648", "\u002c"], ["\u0632", "\u002e"], ["\u0638", "\u061f"], ["Shift", "Shift"]], |
||
153 | [[" ", " ", " ", " "], ["Alt", "Alt"]] |
||
3262 | bpr | 154 | ]; this.VKI_layout.Arabic.lang = ["ar"]; |
1013 | bpr | 155 | |
3131 | bpr | 156 | this.VKI_layout["Armenian East"] = [ // Eastern Armenian Keyboard |
157 | [["\u055D", "\u055C"], [":", "1"], ["\u0571", "\u0541"], ["\u0575", "\u0545"], ["\u055B", "3"], [",", "4"], ["-", "9"], [".", "\u0587"], ["\u00AB", "("], ["\u00BB", ")"], ["\u0585", "\u0555"], ["\u057C", "\u054C"], ["\u056A", "\u053A"], ["Bksp", "Bksp"]], |
||
158 | [["Tab", "Tab"], ["\u056D", "\u053D"], ["\u0582", "\u0552"], ["\u0567", "\u0537"], ["\u0580", "\u0550"], ["\u057F", "\u054F"], ["\u0565", "\u0535"], ["\u0568", "\u0538"], ["\u056B", "\u053B"], ["\u0578", "\u0548"], ["\u057A", "\u054A"], ["\u0579", "\u0549"], ["\u057B", "\u054B"], ["'", "\u055E"]], |
||
159 | [["Caps", "Caps"], ["\u0561", "\u0531"], ["\u057D", "\u054D"], ["\u0564", "\u0534"], ["\u0586", "\u0556"], ["\u0584", "\u0554"], ["\u0570", "\u0540"], ["\u0573", "\u0543"], ["\u056F", "\u053F"], ["\u056C", "\u053C"], ["\u0569", "\u0539"], ["\u0583", "\u0553"], ["Enter", "Enter"]], |
||
160 | [["Shift", "Shift"], ["\u0566", "\u0536"], ["\u0581", "\u0551"], ["\u0563", "\u0533"], ["\u057E", "\u054E"], ["\u0562", "\u0532"], ["\u0576", "\u0546"], ["\u0574", "\u0544"], ["\u0577", "\u0547"], ["\u0572", "\u0542"], ["\u056E", "\u053E"], ["Shift", "Shift"]], |
||
161 | [[" ", " "]] |
||
3262 | bpr | 162 | ]; this.VKI_layout["Armenian East"].lang = ["hy"]; |
3131 | bpr | 163 | |
164 | this.VKI_layout["Armenian West"] = [ // Western Armenian Keyboard |
||
165 | [["\u055D", "\u055C"], [":", "1"], ["\u0571", "\u0541"], ["\u0575", "\u0545"], ["\u055B", "3"], [",", "4"], ["-", "9"], [".", "\u0587"], ["\u00AB", "("], ["\u00BB", ")"], ["\u0585", "\u0555"], ["\u057C", "\u054C"], ["\u056A", "\u053A"], ["Bksp", "Bksp"]], |
||
166 | [["Tab", "Tab"], ["\u056D", "\u053D"], ["\u057E", "\u054E"], ["\u0567", "\u0537"], ["\u0580", "\u0550"], ["\u0564", "\u0534"], ["\u0565", "\u0535"], ["\u0568", "\u0538"], ["\u056B", "\u053B"], ["\u0578", "\u0548"], ["\u0562", "\u0532"], ["\u0579", "\u0549"], ["\u057B", "\u054B"], ["'", "\u055E"]], |
||
167 | [["Caps", "Caps"], ["\u0561", "\u0531"], ["\u057D", "\u054D"], ["\u057F", "\u054F"], ["\u0586", "\u0556"], ["\u056F", "\u053F"], ["\u0570", "\u0540"], ["\u0573", "\u0543"], ["\u0584", "\u0554"], ["\u056C", "\u053C"], ["\u0569", "\u0539"], ["\u0583", "\u0553"], ["Enter", "Enter"]], |
||
168 | [["Shift", "Shift"], ["\u0566", "\u0536"], ["\u0581", "\u0551"], ["\u0563", "\u0533"], ["\u0582", "\u0552"], ["\u057A", "\u054A"], ["\u0576", "\u0546"], ["\u0574", "\u0544"], ["\u0577", "\u0547"], ["\u0572", "\u0542"], ["\u056E", "\u053E"], ["Shift", "Shift"]], |
||
169 | [[" ", " "]] |
||
3262 | bpr | 170 | ]; this.VKI_layout["Armenian West"].lang = ["hy-arevmda"]; |
3131 | bpr | 171 | |
1220 | bpr | 172 | this.VKI_layout.Belarusian = [ // Belarusian Standard Keyboard |
173 | [["\u0451", "\u0401"], ["1", "!"], ["2", '"'], ["3", "\u2116"], ["4", ";"], ["5", "%"], ["6", ":"], ["7", "?"], ["8", "*"], ["9", "("], ["0", ")"], ["-", "_"], ["=", "+"], ["Bksp", "Bksp"]], |
||
174 | [["Tab", "Tab"], ["\u0439", "\u0419"], ["\u0446", "\u0426"], ["\u0443", "\u0423"], ["\u043a", "\u041a"], ["\u0435", "\u0415"], ["\u043d", "\u041d"], ["\u0433", "\u0413"], ["\u0448", "\u0428"], ["\u045e", "\u040e"], ["\u0437", "\u0417"], ["\u0445", "\u0425"], ["'", "'"], ["\\", "/"]], |
||
175 | [["Caps", "Caps"], ["\u0444", "\u0424"], ["\u044b", "\u042b"], ["\u0432", "\u0412"], ["\u0430", "\u0410"], ["\u043f", "\u041f"], ["\u0440", "\u0420"], ["\u043e", "\u041e"], ["\u043b", "\u041b"], ["\u0434", "\u0414"], ["\u0436", "\u0416"], ["\u044d", "\u042d"], ["Enter", "Enter"]], |
||
176 | [["Shift", "Shift"], ["/", "|"], ["\u044f", "\u042f"], ["\u0447", "\u0427"], ["\u0441", "\u0421"], ["\u043c", "\u041c"], ["\u0456", "\u0406"], ["\u0442", "\u0422"], ["\u044c", "\u042c"], ["\u0431", "\u0411"], ["\u044e", "\u042e"], [".", ","], ["Shift", "Shift"]], |
||
177 | [[" ", " "]] |
||
3262 | bpr | 178 | ]; this.VKI_layout.Belarusian.lang = ["be"]; |
1220 | bpr | 179 | |
1013 | bpr | 180 | this.VKI_layout.Belgian = [ // Belgian Standard Keyboard |
181 | [["\u00b2", "\u00b3"], ["&", "1", "|"], ["\u00e9", "2", "@"], ['"', "3", "#"], ["'", "4"], ["(", "5"], ["\u00a7", "6", "^"], ["\u00e8", "7"], ["!", "8"], ["\u00e7", "9", "{"], ["\u00e0", "0", "}"], [")", "\u00b0"], ["-", "_"], ["Bksp", "Bksp"]], |
||
182 | [["Tab", "Tab"], ["a", "A"], ["z", "Z"], ["e", "E", "\u20ac"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["\u005e", "\u00a8", "["], ["$", "*", "]"], ["Enter", "Enter"]], |
||
183 | [["Caps", "Caps"], ["q", "Q"], ["s", "S"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], ["m", "M"], ["\u00f9", "%", "\u00b4"], ["\u03bc", "\u00a3", "`"]], |
||
184 | [["Shift", "Shift"], ["<", ">", "\\"], ["w", "W"], ["x", "X"], ["c", "C"], ["v", "V"], ["b", "B"], ["n", "N"], [",", "?"], [";", "."], [":", "/"], ["=", "+", "~"], ["Shift", "Shift"]], |
||
185 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 186 | ]; this.VKI_layout.Belgian.lang = ["nl-BE", "fr-BE"]; |
1013 | bpr | 187 | |
3131 | bpr | 188 | this.VKI_layout.Bengali = [ // Bengali Standard Keyboard |
189 | [[""], ["1", "", "\u09E7"], ["2", "", "\u09E8"], ["3", "\u09CD\u09B0", "\u09E9"], ["4", "\u09B0\u09CD", "\u09EA"], ["5", "\u099C\u09CD\u09B0", "\u09EB"], ["6", "\u09A4\u09CD\u09B7", "\u09EC"], ["7", "\u0995\u09CD\u09B0", "\u09ED"], ["8", "\u09B6\u09CD\u09B0", "\u09EE"], ["9", "(", "\u09EF"], ["0", ")", "\u09E6"], ["-", "\u0983"], ["\u09C3", "\u098B", "\u09E2", "\u09E0"], ["Bksp", "Bksp"]], |
||
190 | [["Tab", "Tab"], ["\u09CC", "\u0994", "\u09D7"], ["\u09C8", "\u0990"], ["\u09BE", "\u0986"], ["\u09C0", "\u0988", "\u09E3", "\u09E1"], ["\u09C2", "\u098A"], ["\u09AC", "\u09AD"], ["\u09B9", "\u0999"], ["\u0997", "\u0998"], ["\u09A6", "\u09A7"], ["\u099C", "\u099D"], ["\u09A1", "\u09A2", "\u09DC", "\u09DD"], ["\u09BC", "\u099E"]], |
||
191 | [["Caps", "Caps"], ["\u09CB", "\u0993", "\u09F4", "\u09F5"], ["\u09C7", "\u098F", "\u09F6", "\u09F7"], ["\u09CD", "\u0985", "\u09F8", "\u09F9"], ["\u09BF", "\u0987", "\u09E2", "\u098C"], ["\u09C1", "\u0989"], ["\u09AA", "\u09AB"], ["\u09B0", "", "\u09F0", "\u09F1"], ["\u0995", "\u0996"], ["\u09A4", "\u09A5"], ["\u099A", "\u099B"], ["\u099F", "\u09A0"], ["Enter", "Enter"]], |
||
192 | [["Shift", "Shift"], [""], ["\u0982", "\u0981", "\u09FA"], ["\u09AE", "\u09A3"], ["\u09A8"], ["\u09AC"], ["\u09B2"], ["\u09B8", "\u09B6"], [",", "\u09B7"], [".", "{"], ["\u09AF", "\u09DF"], ["Shift", "Shift"]], |
||
193 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 194 | ]; this.VKI_layout.Bengali.lang = ["bn"]; |
3131 | bpr | 195 | |
1220 | bpr | 196 | this.VKI_layout['Bulgarian Ph'] = [ // Bulgarian Phonetic Keyboard |
197 | [["\u0447", "\u0427"], ["1", "!"], ["2", "@"], ["3", "#"], ["4", "$"], ["5", "%"], ["6", "^"], ["7", "&"], ["8", "*"], ["9", "("], ["0", ")"], ["-", "_"], ["=", "+"], ["Bksp", "Bksp"]], |
||
198 | [["Tab", "Tab"], ["\u044F", "\u042F"], ["\u0432", "\u0412"], ["\u0435", "\u0415"], ["\u0440", "\u0420"], ["\u0442", "\u0422"], ["\u044A", "\u042A"], ["\u0443", "\u0423"], ["\u0438", "\u0418"], ["\u043E", "\u041E"], ["\u043F", "\u041F"], ["\u0448", "\u0428"], ["\u0449", "\u0429"], ["\u044E", "\u042E"]], |
||
199 | [["Caps", "Caps"], ["\u0430", "\u0410"], ["\u0441", "\u0421"], ["\u0434", "\u0414"], ["\u0444", "\u0424"], ["\u0433", "\u0413"], ["\u0445", "\u0425"], ["\u0439", "\u0419"], ["\u043A", "\u041A"], ["\u043B", "\u041B"], [";", ":"], ["'", '"'], ["Enter", "Enter"]], |
||
200 | [["Shift", "Shift"], ["\u0437", "\u0417"], ["\u044C", "\u042C"], ["\u0446", "\u0426"], ["\u0436", "\u0416"], ["\u0431", "\u0411"], ["\u043D", "\u041D"], ["\u043C", "\u041C"], [",", "<"], [".", ">"], ["/", "?"], ["Shift", "Shift"]], |
||
201 | [[" ", " "]] |
||
3262 | bpr | 202 | ]; this.VKI_layout['Bulgarian Ph'].lang = ["bg"]; |
1220 | bpr | 203 | |
1013 | bpr | 204 | this.VKI_layout.Burmese = [ // Burmese Keyboard |
205 | [["\u1039`", "~"], ["\u1041", "\u100D"], ["\u1042", "\u100E"], ["\u1043", "\u100B"], ["\u1044", "\u1000\u103B\u1015\u103A"], ["\u1045", "%"], ["\u1046", "\u002F"], ["\u1047", "\u101B"], ["\u1048", "\u1002"], ["\u1049", "("], ["\u1040", ")"], ["-", "_"], ["=", "+"], ["Bksp", "Bksp"]], |
||
206 | [["Tab", "Tab"], ["\u1006", "\u1029"], ["\u1010", "\u1040"], ["\u1014", "\u103F"], ["\u1019", "\u1023"], ["\u1021", "\u1024"], ["\u1015", "\u104C"], ["\u1000", "\u1009"], ["\u1004", "\u104D"], ["\u101E", "\u1025"], ["\u1005", "\u100F"], ["\u101F", "\u1027"], ["\u2018", "\u2019"], ["\u104F", "\u100B\u1039\u100C"]], |
||
207 | [["Caps", "Caps"], ["\u200B\u1031", "\u1017"], ["\u200B\u103B", "\u200B\u103E"], ["\u200B\u102D", "\u200B\u102E"], ["\u200B\u103A","\u1004\u103A\u1039\u200B"], ["\u200B\u102B", "\u200B\u103D"], ["\u200B\u1037", "\u200B\u1036"], ["\u200B\u103C", "\u200B\u1032"], ["\u200B\u102F", "\u200B\u102F"], ["\u200B\u1030", "\u200B\u1030"], ["\u200B\u1038", "\u200B\u102B\u103A"], ["\u1012", "\u1013"], ["Enter", "Enter"]], |
||
208 | [["Shift", "Shift"], ["\u1016", "\u1007"], ["\u1011", "\u100C"], ["\u1001", "\u1003"], ["\u101C", "\u1020"], ["\u1018", "\u1026"], ["\u100A", "\u1008"], ["\u200B\u102C", "\u102A"], ["\u101A", "\u101B"], ["\u002E", "\u101B"], ["\u104B", "\u104A"], ["Shift", "Shift"]], |
||
209 | [[" ", " "]] |
||
3262 | bpr | 210 | ]; this.VKI_layout.Burmese.lang = ["my"]; |
1013 | bpr | 211 | |
212 | this.VKI_layout.Czech = [ // Czech Keyboard |
||
213 | [[";", "\u00b0", "`", "~"], ["+", "1", "!"], ["\u011B", "2", "@"], ["\u0161", "3", "#"], ["\u010D", "4", "$"], ["\u0159", "5", "%"], ["\u017E", "6", "^"], ["\u00FD", "7", "&"], ["\u00E1", "8", "*"], ["\u00ED", "9", "("], ["\u00E9", "0", ")"], ["=", "%", "-", "_"], ["\u00B4", "\u02c7", "=", "+"], ["Bksp", "Bksp"]], |
||
214 | [["Tab", "Tab"], ["q", "Q"], ["w", "W"], ["e", "E", "\u20AC"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["\u00FA", "/", "[", "{"], [")", "(", "]", "}"], ["Enter", "Enter"]], |
||
215 | [["Caps", "Caps"], ["a", "A"], ["s", "S"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], ["\u016F", '"', ";", ":"], ["\u00A7", "!", "\u00a4", "^"], ["\u00A8", "'", "\\", "|"]], |
||
216 | [["Shift", "Shift"], ["\\", "|", "", "\u02dd"], ["z", "Z"], ["x", "X"], ["c", "C"], ["v", "V"], ["b", "B"], ["n", "N"], ["m", "M"], [",", "?", "<", "\u00d7"], [".", ":", ">", "\u00f7"], ["-", "_", "/", "?"], ["Shift", "Shift"]], |
||
217 | [[" ", " ", " ", " "], ["Alt", "Alt"]] |
||
3262 | bpr | 218 | ]; this.VKI_layout.Czech.lang = ["cs"]; |
1013 | bpr | 219 | |
3131 | bpr | 220 | this.VKI_layout.Danish = [ // Danish Standard Keyboard |
221 | [["\u00bd", "\u00a7"], ["1", "!"], ["2", '"', "@"], ["3", "#", "\u00a3"], ["4", "\u00a4", "$"], ["5", "%", "\u20ac"], ["6", "&"], ["7", "/", "{"], ["8", "(", "["], ["9", ")", "]"], ["0", "=", "}"], ["+", "?"], ["\u00b4", "`", "|"], ["Bksp", "Bksp"]], |
||
222 | [["Tab", "Tab"], ["q", "Q"], ["w", "W"], ["e", "E", "\u20ac"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["\u00e5", "\u00c5"], ["\u00a8", "^", "~"], ["Enter", "Enter"]], |
||
223 | [["Caps", "Caps"], ["a", "A"], ["s", "S"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], ["\u00e6", "\u00c6"], ["\u00f8", "\u00d8"], ["'", "*"]], |
||
224 | [["Shift", "Shift"], ["<", ">", "\\"], ["z", "Z"], ["x", "X"], ["c", "C"], ["v", "V"], ["b", "B"], ["n", "N"], ["m", "M", "\u03bc", "\u039c"], [",", ";"], [".", ":"], ["-", "_"], ["Shift", "Shift"]], |
||
225 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 226 | ]; this.VKI_layout.Danish.lang = ["da"]; |
3131 | bpr | 227 | |
1013 | bpr | 228 | this.VKI_layout.Dutch = [ // Dutch Standard Keyboard |
229 | [["@", "\u00a7", "\u00ac"], ["1", "!", "\u00b9"], ["2", '"', "\u00b2"], ["3", "#", "\u00b3"], ["4", "$", "\u00bc"], ["5", "%", "\u00bd"], ["6", "&", "\u00be"], ["7", "_", "\u00a3"], ["8", "(", "{"], ["9", ")", "}"], ["0", "'"], ["/", "?", "\\"], ["\u00b0", "~", "\u00b8"], ["Bksp", "Bksp"]], |
||
230 | [["Tab", "Tab"], ["q", "Q"], ["w", "W"], ["e", "E", "\u20ac"], ["r", "R", "\u00b6"], ["t", "T"], ["y", "Y"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["\u00a8", "^"], ["*", "|"], ["<", ">"]], |
||
231 | [["Caps", "Caps"], ["a", "A"], ["s", "S", "\u00df"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], ["+", "\u00b1"], ["\u00b4", "\u0060"], ["Enter", "Enter"]], |
||
232 | [["Shift", "Shift"], ["]", "[", "\u00a6"], ["z", "Z", "\u00ab"], ["x", "X", "\u00bb"], ["c", "C", "\u00a2"], ["v", "V"], ["b", "B"], ["n", "N"], ["m", "M", "\u00b5"], [",", ";"], [".", ":", "\u00b7"], ["-", "="], ["Shift", "Shift"]], |
||
233 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 234 | ]; this.VKI_layout.Dutch.lang = ["nl"]; |
1013 | bpr | 235 | |
236 | this.VKI_layout.Dvorak = [ // Dvorak Keyboard |
||
237 | [["`", "~"], ["1", "!"], ["2", "@"], ["3", "#"], ["4", "$"], ["5", "%"], ["6", "^"], ["7", "&"], ["8", "*"], ["9", "("], ["0", ")"], ["[", "{"], ["]", "}"], ["Bksp", "Bksp"]], |
||
238 | [["Tab", "Tab"],["'", '"'], [",", "<"], [".", ">"], ["p", "P"], ["y", "Y"], ["f", "F"], ["g", "G"], ["c", "C"], ["r", "R"], ["l", "L"], ["/", "?"], ["=", "+"], ["\\", "|"]], |
||
239 | [["Caps", "Caps"], ["a", "A"], ["o", "O"], ["e", "E"], ["u", "U"], ["i", "I"], ["d", "D"], ["h", "H"], ["t", "T"], ["n", "N"], ["s", "S"], ["-", "_"], ["Enter", "Enter"]], |
||
240 | [["Shift", "Shift"], [";", ":"], ["q", "Q"], ["j", "J"], ["k", "K"], ["x", "X"], ["b", "B"], ["m", "M"], ["w", "W"], ["v", "V"], ["z", "Z"], ["Shift", "Shift"]], |
||
241 | [[" ", " "]] |
||
242 | ]; |
||
243 | |||
244 | this.VKI_layout.Farsi = [ // Farsi Keyboard |
||
245 | [["\u067e", "\u0651 "], ["1", "!", "\u00a1", "\u00b9"], ["2", "@", "\u00b2"], ["3", "#", "\u00b3"], ["4", "$", "\u00a4", "\u00a3"], ["5", "%", "\u20ac"], ["6", "^", "\u00bc"], ["7", "&", "\u00bd"], ["8", "*", "\u00be"], ["9", "(", "\u2018"], ["0", ")", "\u2019"], ["-", "_", "\u00a5"], ["=", "+", "\u00d7", "\u00f7"], ["Bksp", "Bksp"]], |
||
246 | [["Tab", "Tab"], ["\u0636", "\u064e"], ["\u0635", "\u064b"], ["\u062b", "\u064f"], ["\u0642", "\u064c"], ["\u0641", "\u0644"], ["\u063a", "\u0625"], ["\u0639", "\u2018"], ["\u0647", "\u00f7"], ["\u062e", "\u00d7"], ["\u062d", "\u061b"], ["\u062c", "\u003c"], ["\u0686", "\u003e"], ["\u0698", "\u007c"]], |
||
247 | [["Caps", "Caps"], ["\u0634", "\u0650"], ["\u0633", "\u064d"], ["\u064a", "\u005d"], ["\u0628", "\u005b"], ["\u0644", "\u0644"], ["\u0627", "\u0623"], ["\u062a", "\u0640"], ["\u0646", "\u060c"], ["\u0645", "\u005c"], ["\u06af", "\u003a"], ["\u0643", "\u0022"], ["Enter", "Enter"]], |
||
248 | [["Shift", "Shift"], ["\u0626", "\u007e"], ["\u0621", "\u0652"], ["\u0632", "\u007d"], ["\u0631", "\u007b"], ["\u0630", "\u0644"], ["\u062f", "\u0622"], ["\u0626", "\u0621"], ["\u0648", "\u002c"], [".", "\u002e"], ["/", "\u061f"], ["Shift", "Shift"]], |
||
249 | [[" ", " ", " ", " "], ["Alt", "Alt"]] |
||
3262 | bpr | 250 | ]; this.VKI_layout.Farsi.lang = ["fa"]; |
1013 | bpr | 251 | |
252 | this.VKI_layout.French = [ // French Standard Keyboard |
||
253 | [["\u00b2", "\u00b3"], ["&", "1"], ["\u00e9", "2", "~"], ['"', "3", "#"], ["'", "4", "{"], ["(", "5", "["], ["-", "6", "|"], ["\u00e8", "7", "\u0060"], ["_", "8", "\\"], ["\u00e7", "9", "\u005e"], ["\u00e0", "0", "\u0040"], [")", "\u00b0", "]"], ["=", "+", "}"], ["Bksp", "Bksp"]], |
||
254 | [["Tab", "Tab"], ["a", "A"], ["z", "Z"], ["e", "E", "\u20ac"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["^", "\u00a8"], ["$", "\u00a3", "\u00a4"], ["Enter", "Enter"]], |
||
255 | [["Caps", "Caps"], ["q", "Q"], ["s", "S"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], ["m", "M"], ["\u00f9", "%"], ["*", "\u03bc"]], |
||
256 | [["Shift", "Shift"], ["<", ">"], ["w", "W"], ["x", "X"], ["c", "C"], ["v", "V"], ["b", "B"], ["n", "N"], [",", "?"], [";", "."], [":", "/"], ["!", "\u00a7"], ["Shift", "Shift"]], |
||
257 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 258 | ]; this.VKI_layout.French.lang = ["fr"]; |
1013 | bpr | 259 | |
260 | this.VKI_layout.German = [ // German Standard Keyboard |
||
261 | [["\u005e", "\u00b0"], ["1", "!"], ["2", '"', "\u00b2"], ["3", "\u00a7", "\u00b3"], ["4", "$"], ["5", "%"], ["6", "&"], ["7", "/", "{"], ["8", "(", "["], ["9", ")", "]"], ["0", "=", "}"], ["\u00df", "?", "\\"], ["\u00b4", "\u0060"], ["Bksp", "Bksp"]], |
||
262 | [["Tab", "Tab"], ["q", "Q", "\u0040"], ["w", "W"], ["e", "E", "\u20ac"], ["r", "R"], ["t", "T"], ["z", "Z"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["\u00fc", "\u00dc"], ["+", "*", "~"], ["Enter", "Enter"]], |
||
263 | [["Caps", "Caps"], ["a", "A"], ["s", "S"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], ["\u00f6", "\u00d6"], ["\u00e4", "\u00c4"], ["#", "'"]], |
||
264 | [["Shift", "Shift"], ["<", ">", "\u00a6"], ["y", "Y"], ["x", "X"], ["c", "C"], ["v", "V"], ["b", "B"], ["n", "N"], ["m", "M", "\u00b5"], [",", ";"], [".", ":"], ["-", "_"], ["Shift", "Shift"]], |
||
265 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 266 | ]; this.VKI_layout.German.lang = ["de"]; |
1013 | bpr | 267 | |
268 | this.VKI_layout.Greek = [ // Greek Standard Keyboard |
||
269 | [["`", "~"], ["1", "!"], ["2", "@", "\u00b2"], ["3", "#", "\u00b3"], ["4", "$", "\u00a3"], ["5", "%", "\u00a7"], ["6", "^", "\u00b6"], ["7", "&"], ["8", "*", "\u00a4"], ["9", "(", "\u00a6"], ["0", ")", "\u00ba"], ["-", "_", "\u00b1"], ["=", "+", "\u00bd"], ["Bksp", "Bksp"]], |
||
270 | [["Tab", "Tab"], [";", ":"], ["\u03c2", "^"], ["\u03b5", "\u0395"], ["\u03c1", "\u03a1"], ["\u03c4", "\u03a4"], ["\u03c5", "\u03a5"], ["\u03b8", "\u0398"], ["\u03b9", "\u0399"], ["\u03bf", "\u039f"], ["\u03c0", "\u03a0"], ["[", "{", "\u201c"], ["]", "}", "\u201d"], ["Enter", "Enter"]], |
||
271 | [["Caps", "Caps"], ["\u03b1", "\u0391"], ["\u03c3", "\u03a3"], ["\u03b4", "\u0394"], ["\u03c6", "\u03a6"], ["\u03b3", "\u0393"], ["\u03b7", "\u0397"], ["\u03be", "\u039e"], ["\u03ba", "\u039a"], ["\u03bb", "\u039b"], ["\u0384", "\u00a8", "\u0385"], ["'", '"'], ["\\", "|", "\u00ac"]], |
||
272 | [["Shift", "Shift"], ["<", ">"], ["\u03b6", "\u0396"], ["\u03c7", "\u03a7"], ["\u03c8", "\u03a8"], ["\u03c9", "\u03a9"], ["\u03b2", "\u0392"], ["\u03bd", "\u039d"], ["\u03bc", "\u039c"], [",", "<"], [".", ">"], ["/", "?"], ["Shift", "Shift"]], |
||
273 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 274 | ]; this.VKI_layout.Greek.lang = ["el"]; |
1013 | bpr | 275 | |
276 | this.VKI_layout.Hebrew = [ // Hebrew Standard Keyboard |
||
277 | [["~", "`"], ["1", "!"], ["2", "@"], ["3", "#"], ["4" , "$", "\u20aa"], ["5" , "%"], ["6", "^"], ["7", "&"], ["8", "*"], ["9", ")"], ["0", "("], ["-", "_"], ["=", "+"], ["\\", "|"], ["Bksp", "Bksp"]], |
||
278 | [["Tab", "Tab"], ["/", "Q"], ["'", "W"], ["\u05e7", "E", "\u20ac"], ["\u05e8", "R"], ["\u05d0", "T"], ["\u05d8", "Y"], ["\u05d5", "U", "\u05f0"], ["\u05df", "I"], ["\u05dd", "O"], ["\u05e4", "P"], ["]", "}"], ["[", "{"]], |
||
279 | [["Caps", "Caps"], ["\u05e9", "A"], ["\u05d3", "S"], ["\u05d2", "D"], ["\u05db", "F"], ["\u05e2", "G"], ["\u05d9", "H", "\u05f2"], ["\u05d7", "J", "\u05f1"], ["\u05dc", "K"], ["\u05da", "L"], ["\u05e3", ":"], ["," , '"'], ["Enter", "Enter"]], |
||
280 | [["Shift", "Shift"], ["\u05d6", "Z"], ["\u05e1", "X"], ["\u05d1", "C"], ["\u05d4", "V"], ["\u05e0", "B"], ["\u05de", "N"], ["\u05e6", "M"], ["\u05ea", ">"], ["\u05e5", "<"], [".", "?"], ["Shift", "Shift"]], |
||
281 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 282 | ]; this.VKI_layout.Hebrew.lang = ["he"]; |
1013 | bpr | 283 | |
3131 | bpr | 284 | this.VKI_layout.Hindi = [ // Hindi Traditional Keyboard |
285 | [["\u200d", "\u200c", "`", "~"], ["1", "\u090D", "\u0967", "!"], ["2", "\u0945", "\u0968", "@"], ["3", "\u094D\u0930", "\u0969", "#"], ["4", "\u0930\u094D", "\u096A", "$"], ["5", "\u091C\u094D\u091E", "\u096B", "%"], ["6", "\u0924\u094D\u0930", "\u096C", "^"], ["7", "\u0915\u094D\u0937", "\u096D", "&"], ["8", "\u0936\u094D\u0930", "\u096E", "*"], ["9", "(", "\u096F", "("], ["0", ")", "\u0966", ")"], ["-", "\u0903", "-", "_"], ["\u0943", "\u090B", "=", "+"], ["Bksp", "Bksp"]], |
||
286 | [["Tab", "Tab"], ["\u094C", "\u0914"], ["\u0948", "\u0910"], ["\u093E", "\u0906"], ["\u0940", "\u0908"], ["\u0942", "\u090A"], ["\u092C", "\u092D"], ["\u0939", "\u0919"], ["\u0917", "\u0918"], ["\u0926", "\u0927"], ["\u091C", "\u091D"], ["\u0921", "\u0922", "[", "{"], ["\u093C", "\u091E", "]", "}"], ["Enter", "Enter"]], |
||
287 | [["Caps", "Caps"], ["\u094B", "\u0913"], ["\u0947", "\u090F"], ["\u094D", "\u0905"], ["\u093F", "\u0907"], ["\u0941", "\u0909"], ["\u092A", "\u092B"], ["\u0930", "\u0931"], ["\u0915", "\u0916"], ["\u0924", "\u0925"], ["\u091A", "\u091B", ";", ":"], ["\u091F", "\u0920", "'", '"'], ["\u0949", "\u0911", "\\", "|"]], |
||
288 | [["Shift", "Shift"], [""], ["\u0902", "\u0901", "", "\u0950"], ["\u092E", "\u0923"], ["\u0928"], ["\u0935"], ["\u0932", "\u0933"], ["\u0938", "\u0936"], [",", "\u0937", ",", "<"], [".", "\u0964", ".", ">"], ["\u092F", "\u095F", "/", "?"], ["Shift", "Shift"]], |
||
289 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 290 | ]; this.VKI_layout.Hindi.lang = ["hi"]; |
3131 | bpr | 291 | |
1013 | bpr | 292 | this.VKI_layout.Hungarian = [ // Hungarian Standard Keyboard |
293 | [["0", "\u00a7"], ["1", "'", "\u007e"], ["2", '"', "\u02c7"], ["3", "+", "\u02c6"], ["4", "!", "\u02d8"], ["5", "%", "\u00b0"], ["6", "/", "\u02db"], ["7", "=", "\u0060"], ["8", "(", "\u02d9"], ["9", ")", "\u00b4"], ["\u00f6", "\u00d6", "\u02dd"], ["\u00fc", "\u00dc", "\u00a8"], ["\u00f3", "\u00d3", "\u00b8"], ["Bksp", "Bksp"]], |
||
294 | [["Tab", "Tab"], ["q", "Q", "\u005c"], ["w", "W", "\u007c"], ["e", "E", "\u00c4"], ["r", "R"], ["t", "T"], ["z", "Z"], ["u", "U", "\u20ac"], ["i", "I", "\u00cd"], ["o", "O"], ["p", "P"], ["\u0151", "\u0150", "\u00f7"], ["\u00fa", "\u00da", "\u00d7"], ["Enter", "Enter"]], |
||
295 | [["Caps", "Caps"], ["a", "A", "\u00e4"], ["s", "S","\u0111"], ["d", "D","\u0110"], ["f", "F","\u005b"], ["g", "G","\u005d"], ["h", "H"], ["j", "J","\u00ed"], ["k", "K","\u0141"], ["l", "L","\u0142"], ["\u00e9", "\u00c9","\u0024"], ["\u00e1", "\u00c1","\u00df"], ["\u0171", "\u0170","\u00a4"]], |
||
296 | [["Shift", "Shift"], ["\u00ed", "\u00cd","\u003c"], ["y", "Y","\u003e"], ["x", "X","\u0023"], ["c", "C","\u0026"], ["v", "V","\u0040"], ["b", "B","\u007b"], ["n", "N","\u007d"], ["m", "M","\u003c"], [",", "?","\u003b"], [".", ":","\u003e"], ["-", "_","\u002a"], ["Shift", "Shift"]], |
||
297 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 298 | ]; this.VKI_layout.Hungarian.lang = ["hu"]; |
1013 | bpr | 299 | |
300 | this.VKI_layout.Italian = [ // Italian Standard Keyboard |
||
301 | [["\u005c", "\u007c"], ["1", "!"], ["2", '"'], ["3", "\u00a3"], ["4", "$", "\u20ac"], ["5", "%"], ["6", "&"], ["7", "/"], ["8", "("], ["9", ")"], ["0", "="], ["'", "?"], ["\u00ec", "\u005e"], ["Bksp", "Bksp"]], |
||
302 | [["Tab", "Tab"], ["q", "Q"], ["w", "W"], ["e", "E", "\u20ac"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["\u00e8", "\u00e9", "[", "{"], ["+", "*", "]", "}"], ["Enter", "Enter"]], |
||
303 | [["Caps", "Caps"], ["a", "A"], ["s", "S"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], ["\u00f2", "\u00e7", "@"], ["\u00e0", "\u00b0", "#"], ["\u00f9", "\u00a7"]], |
||
304 | [["Shift", "Shift"], ["<", ">"], ["z", "Z"], ["x", "X"], ["c", "C"], ["v", "V"], ["b", "B"], ["n", "N"], ["m", "M"], [",", ";"], [".", ":"], ["-", "_"], ["Shift", "Shift"]], |
||
305 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 306 | ]; this.VKI_layout.Italian.lang = ["it"]; |
1220 | bpr | 307 | |
3262 | bpr | 308 | this.VKI_layout["\u65e5\u672c\u8a9e"] = [ // Basic Japanese Hiragana/Katakana Keyboard |
309 | [["\uff5e"], ["\u306c", "\u30cc"], ["\u3075", '\u30d5'], ["\u3042", "\u30a2", "\u3041", "\u30a1"], ["\u3046", "\u30a6", "\u3045", "\u30a5"], ["\u3048", "\u30a8", "\u3047", "\u30a7"], ["\u304a", "\u30aa", "\u3049","\u30a9"], ["\u3084", "\u30e4", "\u3083", "\u30e3"], ["\u3086", "\u30e6", "\u3085", "\u30e5"], ["\u3088", "\u30e8", "\u3087", "\u30e7"], ["\u308f", "\u30ef", "\u3092", "\u30f2"], ["\u307b", "\u30db", "\u30fc", "\uff1d"], ["\u3078", "\u30d8" ,"\uff3e", "\uff5e"], ['"', '"', "\uffe5", "\uff5c"], ["Bksp", "Bksp"]], |
||
310 | [["Tab", "Tab"], ["\u305f", "\u30bf"], ["\u3066", "\u30c6"], ["\u3044", "\u30a4", "\u3043", "\u30a3"], ["\u3059", "\u30b9"], ["\u304b", "\u30ab"], ["\u3093", "\u30f3"], ["\u306a", "\u30ca"], ["\u306b", "\u30cb"], ["\u3089", "\u30e9"], ["\u305b", "\u30bb"],["\u3001", "\u3001", "\uff20", "\u2018"],["\u3002", "\u3002", "\u300c", "\uff5b"],["\uffe5","", "", "\uff0a"]], |
||
311 | [["Caps", "Caps"], ["\u3061", "\u30c1"], ["\u3068", "\u30c8"], ["\u3057", "\u30b7"], ["\u306f", "\u30cf"], ["\u304d", "\u30ad"], ["\u304f", "\u30af"], ["\u307e", "\u30de"], ["\u306e", "\u30ce"], ["\u308c", "\u30ec", "\uff1b", "\uff0b"], ["\u3051", "\u30b1", "\uff1a", "\u30f6"], ["\u3080", "\u30e0", "\u300d", "\uff5d"],["Enter", "Enter"]], |
||
312 | [["Shift", "Shift"], ["\u3064", "\u30c4"], ["\u3055", "\u30b5"], ["\u305d", "\u30bd"], ["\u3072", "\u30d2"], ["\u3053", "\u30b3"], ["\u307f", "\u30df"], ["\u3082", "\u30e2"], ["\u306d", "\u30cd", "\u3001", "\uff1c"], ["\u308b", "\u30eb", "\u3002", "\uff1e"], ["\u3081", "\u30e1", "\u30fb", "\uff1f"], ["\u308d", "\u30ed", "", "\uff3f"], ["Shift", "Shift"]], |
||
313 | [["AltLk", "AltLk"], [" ", " ", " ", " "], ["Alt", "Alt"]] |
||
314 | ]; this.VKI_layout["\u65e5\u672c\u8a9e"].lang = ["ja"]; |
||
315 | |||
3131 | bpr | 316 | this.VKI_layout.Kazakh = [ // Kazakh Standard Keyboard |
317 | [["(", ")"], ['"', "!"], ["\u04d9", "\u04d8"], ["\u0456", "\u0406"], ["\u04a3", "\u04a2"], ["\u0493", "\u0492"], [",", ";"], [".", ":"], ["\u04af", "\u04ae"], ["\u04b1", "\u04b0"], ["\u049b", "\u049a"], ["\u04e9", "\u04e8"], ["\u04bb", "\u04ba"], ["Bksp", "Bksp"]], |
||
318 | [["Tab", "Tab"], ["\u0439", "\u0419"], ["\u0446", "\u0426"], ["\u0443", "\u0423"], ["\u043A", "\u041A"], ["\u0435", "\u0415"], ["\u043D", "\u041D"], ["\u0433", "\u0413"], ["\u0448", "\u0428"], ["\u0449", "\u0429"], ["\u0437", "\u0417"], ["\u0445", "\u0425"], ["\u044A", "\u042A"], ["\\", "/"]], |
||
319 | [["Caps", "Caps"], ["\u0444", "\u0424"], ["\u044B", "\u042B"], ["\u0432", "\u0412"], ["\u0430", "\u0410"], ["\u043F", "\u041F"], ["\u0440", "\u0420"], ["\u043E", "\u041E"], ["\u043B", "\u041B"], ["\u0434", "\u0414"], ["\u0436", "\u0416"], ["\u044D", "\u042D"], ["Enter", "Enter"]], |
||
320 | [["Shift", "Shift"], ["\\", "|"], ["\u044F", "\u042F"], ["\u0447", "\u0427"], ["\u0441", "\u0421"], ["\u043C", "\u041C"], ["\u0438", "\u0418"], ["\u0442", "\u0422"], ["\u044C", "\u042C"], ["\u0431", "\u0411"], ["\u044E", "\u042E"], ["\u2116", "?"], ["Shift", "Shift"]], |
||
321 | [[" ", " "]] |
||
3262 | bpr | 322 | ]; this.VKI_layout.Kazakh.lang = ["kk"]; |
3131 | bpr | 323 | |
1013 | bpr | 324 | this.VKI_layout.Lithuanian = [ // Lithuanian Standard Keyboard |
325 | [["`", "~"], ["\u0105", "\u0104"], ["\u010D", "\u010C"], ["\u0119", "\u0118"], ["\u0117", "\u0116"], ["\u012F", "\u012E"], ["\u0161", "\u0160"], ["\u0173", "\u0172"], ["\u016B", "\u016A"], ["\u201E", "("], ["\u201C", ")"], ["-", "_"], ["\u017E", "\u017D"], ["Bksp", "Bksp"]], |
||
326 | [["Tab", "Tab"], ["q", "Q"], ["w", "W"], ["e", "E"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["[", "{"], ["]", "}"], ["Enter", "Enter"]], |
||
327 | [["Caps", "Caps"], ["a", "A"], ["s", "S"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], [";", ":"], ["'", '"'], ["\\", "|"]], |
||
328 | [["Shift", "Shift"], ["\u2013", "\u20AC"], ["z", "Z"], ["x", "X"], ["c", "C"], ["v", "V"], ["b", "B"], ["n", "N"], ["m", "M"], [",", "<"], [".", ">"], ["/", "?"], ["Shift", "Shift"]], |
||
329 | [[" ", " "]] |
||
3262 | bpr | 330 | ]; this.VKI_layout.Lithuanian.lang = ["lt"]; |
1013 | bpr | 331 | |
3131 | bpr | 332 | this.VKI_layout.Macedonian = [ // Macedonian Cyrillic Standard Keyboard |
333 | [["`", "~"], ["1", "!"], ["2", "\u201E"], ["3", "\u201C"], ["4", "\u2019"], ["5", "%"], ["6", "\u2018"], ["7", "&"], ["8", "*"], ["9", "("], ["0", ")"], ["-", "_"], ["=", "+"], ["Bksp", "Bksp"]], |
||
334 | [["Tab", "Tab"], ["\u0459", "\u0409"], ["\u045A", "\u040A"], ["\u0435", "\u0415", "\u20AC"], ["\u0440", "\u0420"], ["\u0442", "\u0422"], ["\u0455", "\u0405"], ["\u0443", "\u0423"], ["\u0438", "\u0418"], ["\u043E", "\u041E"], ["\u043F", "\u041F"], ["\u0448", "\u0428", "\u0402"], ["\u0453", "\u0403", "\u0452"], ["Enter", "Enter"]], |
||
335 | [["Caps", "Caps"], ["\u0430", "\u0410"], ["\u0441", "\u0421"], ["\u0434", "\u0414"], ["\u0444", "\u0424", "["], ["\u0433", "\u0413", "]"], ["\u0445", "\u0425"], ["\u0458", "\u0408"], ["\u043A", "\u041A"], ["\u043B", "\u041B"], ["\u0447", "\u0427", "\u040B"], ["\u045C", "\u040C", "\u045B"], ["\u0436", "\u0416"]], |
||
336 | [["Shift", "Shift"], ["\u0451", "\u0401"], ["\u0437", "\u0417"], ["\u045F", "\u040F"], ["\u0446", "\u0426"], ["\u0432", "\u0412", "@"], ["\u0431", "\u0411", "{"], ["\u043D", "\u041D", "}"], ["\u043C", "\u041C", "\u00A7"], [",", ";"], [".", ":"], ["/", "?"], ["Shift", "Shift"]], |
||
337 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 338 | ]; this.VKI_layout.Macedonian.lang = ["mk"]; |
3131 | bpr | 339 | |
1013 | bpr | 340 | this.VKI_layout.Norwegian = [ // Norwegian Standard Keyboard |
341 | [["|", "\u00a7"], ["1", "!"], ["2", '"', "@"], ["3", "#", "\u00a3"], ["4", "\u00a4", "$"], ["5", "%"], ["6", "&"], ["7", "/", "{"], ["8", "(", "["], ["9", ")", "]"], ["0", "=", "}"], ["+", "?"], ["\\", "`", "\u00b4"], ["Bksp", "Bksp"]], |
||
342 | [["Tab", "Tab"], ["q", "Q"], ["w", "W"], ["e", "E", "\u20ac"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["\u00e5", "\u00c5"], ["\u00a8", "^", "~"], ["Enter", "Enter"]], |
||
343 | [["Caps", "Caps"], ["a", "A"], ["s", "S"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], ["\u00f8", "\u00d8"], ["\u00e6", "\u00c6"], ["'", "*"]], |
||
344 | [["Shift", "Shift"], ["<", ">"], ["z", "Z"], ["x", "X"], ["c", "C"], ["v", "V"], ["b", "B"], ["n", "N"], ["m", "M", "\u03bc", "\u039c"], [",", ";"], [".", ":"], ["-", "_"], ["Shift", "Shift"]], |
||
345 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 346 | ]; this.VKI_layout.Norwegian.lang = ["no", "nb", "nn"]; |
1013 | bpr | 347 | |
348 | this.VKI_layout.Numpad = [ // Number pad |
||
349 | [["$"], ["\u00a3"], ["\u20ac"], ["\u00a5"], ["/"], ["^"], ["Bksp", "Bksp"]], |
||
350 | [["."], ["7"], ["8"], ["9"], ["*"], ["<"], ["("], ["["]], |
||
351 | [["="], ["4"], ["5"], ["6"], ["-"], [">"], [")"], ["]"]], |
||
352 | [["0"], ["1"], ["2"], ["3"], ["+"], ["Enter", "Enter"]], |
||
353 | [[" "]] |
||
3262 | bpr | 354 | ]; this.VKI_layout.Numpad.DDK = true; |
1013 | bpr | 355 | |
3131 | bpr | 356 | this.VKI_layout.Pashto = [ // Pashto Keyboard |
357 | [["\u200d", "\u00f7"], ["\u06f1", "\u0021", "\u0060"], ["\u06f2", "\u066c", "\u0040"], ["\u06f3", "\u066b", "\u066b"], ["\u06f4", "\u00a4", "\u00a3"], ["\u06f5", "\u066a", "\u0025"], ["\u06f6", "\u00d7", "\u005e"], ["\u06f7", "\u00ab", "\u0026"], ["\u06f8", "\u00bb", "\u002a"], ["\u06f9", "(", "\ufdf2"], ["\u06f0", ")", "\ufefb"], ["\u002d", "\u0640", "\u005f"], ["\u003d", "\u002b", "\ufe87", "\u00f7"], ["Bksp", "Bksp"]], |
||
358 | [["Tab", "Tab"], ["\u0636", "\u0652", "\u06d5"], ["\u0635", "\u064c", "\u0653"], ["\u062b", "\u064d", "\u20ac"], ["\u0642", "\u064b", "\ufef7"], ["\u0641", "\u064f", "\ufef5"], ["\u063a", "\u0650", "\u0027"], ["\u0639", "\u064e", "\ufe84"], ["\u0647", "\u0651", "\u0670"], ["\u062e", "\u0685", "\u0027"], ["\u062d", "\u0681", "\u0022"], ["\u062c", "\u005b", "\u007b"], ["\u0686", "\u005d", "\u007d"], ["\u005c", "\u066d", "\u007c"]], |
||
359 | [["Caps", "Caps"], ["\u0634", "\u069a", "\ufbb0"], ["\u0633", "\u0626", "\ufe87"], ["\u06cc", "\u064a", "\u06d2"], ["\u0628", "\u067e", "\u06ba"], ["\u0644", "\u0623", "\u06b7"], ["\u0627", "\u0622", "\u0671"], ["\u062a", "\u067c", "\u0679"], ["\u0646", "\u06bc", "\u003c"], ["\u0645", "\u0629", "\u003e"], ["\u06a9", "\u003a", "\u0643"], ["\u06af", "\u061b", "\u06ab"], ["Enter", "Enter"]], |
||
360 | [["Shift", "Shift"], ["\u06cd", "\u0638", "\u003b"], ["\u06d0", "\u0637", "\ufbb0"], ["\u0632", "\u0698", "\u0655"], ["\u0631", "\u0621", "\u0654"], ["\u0630", "\u200c", "\u0625"], ["\u062f", "\u0689", "\u0688"], ["\u0693", "\u0624", "\u0691"], ["\u0648", "\u060c", "\u002c"], ["\u0696", "\u002e", "\u06c7"], ["\u002f", "\u061f", "\u06c9"], ["Shift", "Shift", "\u064d"]], |
||
361 | [[" ", " ", " ", " "], ["Alt", "Alt"]] |
||
3262 | bpr | 362 | ]; this.VKI_layout.Pashto.lang = ["ps"]; |
3131 | bpr | 363 | |
364 | this.VKI_layout.Pinyin = [ // Pinyin Keyboard |
||
365 | [["`", "~", "\u4e93", "\u301C"], ["1", "!", "\uFF62"], ["2", "@", "\uFF63"], ["3", "#", "\u301D"], ["4", "$", "\u301E"], ["5", "%", "\u301F"], ["6", "^", "\u3008"], ["7", "&", "\u3009"], ["8", "*", "\u302F"], ["9", "(", "\u300A"], ["0", ")", "\u300B"], ["-", "_", "\u300E"], ["=", "+", "\u300F"], ["Bksp", "Bksp"]], |
||
366 | [["Tab", "Tab"], ["q", "Q", "\u0101", "\u0100"], ["w", "W", "\u00E1", "\u00C1"], ["e", "E", "\u01CE", "\u01CD"], ["r", "R", "\u00E0", "\u00C0"], ["t", "T", "\u0113", "\u0112"], ["y", "Y", "\u00E9", "\u00C9"], ["u", "U", "\u011B", "\u011A"], ["i", "I", "\u00E8", "\u00C8"], ["o", "O", "\u012B", "\u012A"], ["p", "P", "\u00ED", "\u00CD"], ["[", "{", "\u01D0", "\u01CF"], ["]", "}", "\u00EC", "\u00CC"], ["\\", "|", "\u3020"]], |
||
367 | [["Caps", "Caps"], ["a", "A", "\u014D", "\u014C"], ["s", "S", "\u00F3", "\u00D3"], ["d", "D", "\u01D2", "\u01D1"], ["f", "F", "\u00F2", "\u00D2"], ["g", "G", "\u00fc", "\u00dc"], ["h", "H", "\u016B", "\u016A"], ["j", "J", "\u00FA", "\u00DA"], ["k", "K", "\u01D4", "\u01D3"], ["l", "L", "\u00F9", "\u00D9"], [";", ":"], ["'", '"'], ["Enter", "Enter"]], |
||
368 | [["Shift", "Shift"], ["z", "Z", "\u01D6", "\u01D5"], ["x", "X", "\u01D8", "\u01D7"], ["c", "C", "\u01DA", "\u01D9"], ["v", "V", "\u01DC", "\u01DB"], ["b", "B"], ["n", "N"], ["m", "M"], [",", "<", "\u3001"], [".", ">", "\u3002"], ["/", "?"], ["Shift", "Shift"]], |
||
369 | [["AltLk", "AltLk"], [" ", " ", " ", " "], ["Alt", "Alt"]] |
||
3262 | bpr | 370 | ]; this.VKI_layout.Pinyin.lang = ["zh-Latn"]; |
3131 | bpr | 371 | |
1013 | bpr | 372 | this.VKI_layout["Polish Prog"] = [ // Polish Programmers Keyboard |
373 | [["`", "~"], ["1", "!"], ["2", "@"], ["3", "#"], ["4", "$"], ["5", "%"], ["6", "^"], ["7", "&"], ["8", "*"], ["9", "("], ["0", ")"], ["-", "_"], ["=", "+"], ["Bksp", "Bksp"]], |
||
374 | [["Tab", "Tab"], ["q", "Q"], ["w", "W"], ["e", "E", "\u0119", "\u0118"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U"], ["i", "I"], ["o", "O", "\u00f3", "\u00d3"], ["p", "P"], ["[", "{"], ["]", "}"], ["\\", "|"]], |
||
375 | [["Caps", "Caps"], ["a", "A", "\u0105", "\u0104"], ["s", "S", "\u015b", "\u015a"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L", "\u0142", "\u0141"], [";", ":"], ["'", '"'], ["Enter", "Enter"]], |
||
376 | [["Shift", "Shift"], ["z", "Z", "\u017c", "\u017b"], ["x", "X", "\u017a", "\u0179"], ["c", "C", "\u0107", "\u0106"], ["v", "V"], ["b", "B"], ["n", "N", "\u0144", "\u0143"], ["m", "M"], [",", "<"], [".", ">"], ["/", "?"], ["Shift", "Shift"]], |
||
377 | [[" ", " ", " ", " "], ["Alt", "Alt"]] |
||
3262 | bpr | 378 | ]; this.VKI_layout["Polish Prog"].lang = ["pl"]; |
1013 | bpr | 379 | |
3131 | bpr | 380 | this.VKI_layout["Portuguese Br"] = [ // Portuguese (Brazil) Standard Keyboard |
381 | [["'", '"'], ["1", "!", "\u00b9"], ["2", "@", "\u00b2"], ["3", "#", "\u00b3"], ["4", "$", "\u00a3"], ["5", "%", "\u00a2"], ["6", "\u00a8", "\u00ac"], ["7", "&"], ["8", "*"], ["9", "("], ["0", ")"], ["-", "_"], ["=", "+", "\u00a7"], ["Bksp", "Bksp"]], |
||
382 | [["Tab", "Tab"], ["q", "Q", "/"], ["w", "W", "?"], ["e", "E", "\u20ac"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["\u00b4", "`"], ["[", "{", "\u00aa"], ["Enter", "Enter"]], |
||
383 | [["Caps", "Caps"], ["a", "A"], ["s", "S"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], ["\u00e7", "\u00c7"], ["~", "^"], ["]", "}", "\u00ba"], ["/", "?"]], |
||
384 | [["Shift", "Shift"], ["\\", "|"], ["z", "Z"], ["x", "X"], ["c", "C", "\u20a2"], ["v", "V"], ["b", "B"], ["n", "N"], ["m", "M"], [",", "<"], [".", ">"], [":", ":"], ["Shift", "Shift"]], |
||
1013 | bpr | 385 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
3262 | bpr | 386 | ]; this.VKI_layout["Portuguese Br"].lang = ["pt-br"]; |
1013 | bpr | 387 | |
3131 | bpr | 388 | this.VKI_layout["Portuguese Pt"] = [ // Portuguese (Portugal) Standard Keyboard |
389 | [["\\", "|"], ["1", "!"], ["2", '"', "@"], ["3", "#", "\u00a3"], ["4", "$", "\u00a7"], ["5", "%"], ["6", "&"], ["7", "/", "{"], ["8", "(", "["], ["9", ")", "]"], ["0", "=", "}"], ["'", "?"], ["\u00ab", "\u00bb"], ["Bksp", "Bksp"]], |
||
390 | [["Tab", "Tab"], ["q", "Q"], ["w", "W"], ["e", "E", "\u20ac"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["+", "*", "\u00a8"], ["\u00b4", "`"], ["Enter", "Enter"]], |
||
391 | [["Caps", "Caps"], ["a", "A"], ["s", "S"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], ["\u00e7", "\u00c7"], ["\u00ba", "\u00aa"], ["~", "^"]], |
||
392 | [["Shift", "Shift"], ["<", ">", "\\"], ["z", "Z"], ["x", "X"], ["c", "C"], ["v", "V"], ["b", "B"], ["n", "N"], ["m", "M"], [",", ";"], [".", ":"], ["-", "_"], ["Shift", "Shift"]], |
||
393 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 394 | ]; this.VKI_layout["Portuguese Pt"].lang = ["pt"]; |
3131 | bpr | 395 | |
1013 | bpr | 396 | this.VKI_layout.Romanian = [ // Romanian Standard Keyboard |
397 | [["\u201E", "\u201D", "\u0060", "~"], ["1", "!","~"], ["2", "\u0040", "\u02C7"], ["3", "#","\u005E"], ["4", "$", "\u02D8"], ["5", "%", "\u00B0"], ["6", "\u005E", "\u02DB"], ["7", "&", "\u0060"], ["8", "*", "\u02D9"], ["9", "(", "\u00B4"], ["0", ")", "\u02DD"], ["-", "_", "\u00A8"], ["=", "+", "\u00B8", "\u00B1"], ["Bksp", "Bksp"]], |
||
398 | [["Tab", "Tab"], ["q", "Q"], ["w", "W"], ["e", "E", "\u20AC"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P", "\u00A7"], ["\u0103", "\u0102", "[", "{"], ["\u00EE", "\u00CE", "]","}"], ["\u00E2", "\u00C2", "\\", "|"]], |
||
399 | [["Caps", "Caps"], ["a", "A"], ["s", "S", "\u00df"], ["d", "D", "\u00f0", "\u00D0"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L", "\u0142", "\u0141"], [(this.VKI_isIElt8) ? "\u015F" : "\u0219", (this.VKI_isIElt8) ? "\u015E" : "\u0218", ";", ":"], [(this.VKI_isIElt8) ? "\u0163" : "\u021B", (this.VKI_isIElt8) ? "\u0162" : "\u021A", "\'", "\""], ["Enter", "Enter"]], |
||
400 | [["Shift", "Shift"], ["\\", "|"], ["z", "Z"], ["x", "X"], ["c", "C", "\u00A9"], ["v", "V"], ["b", "B"], ["n", "N"], ["m", "M"], [",", ";", "<", "\u00AB"], [".", ":", ">", "\u00BB"], ["/", "?"], ["Shift", "Shift"]], |
||
401 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 402 | ]; this.VKI_layout.Romanian.lang = ["ro"]; |
1013 | bpr | 403 | |
404 | this.VKI_layout.Russian = [ // Russian Standard Keyboard |
||
405 | [["\u0451", "\u0401"], ["1", "!"], ["2", '"'], ["3", "\u2116"], ["4", ";"], ["5", "%"], ["6", ":"], ["7", "?"], ["8", "*"], ["9", "("], ["0", ")"], ["-", "_"], ["=", "+"], ["Bksp", "Bksp"]], |
||
406 | [["Tab", "Tab"], ["\u0439", "\u0419"], ["\u0446", "\u0426"], ["\u0443", "\u0423"], ["\u043A", "\u041A"], ["\u0435", "\u0415"], ["\u043D", "\u041D"], ["\u0433", "\u0413"], ["\u0448", "\u0428"], ["\u0449", "\u0429"], ["\u0437", "\u0417"], ["\u0445", "\u0425"], ["\u044A", "\u042A"], ["Enter", "Enter"]], |
||
407 | [["Caps", "Caps"], ["\u0444", "\u0424"], ["\u044B", "\u042B"], ["\u0432", "\u0412"], ["\u0430", "\u0410"], ["\u043F", "\u041F"], ["\u0440", "\u0420"], ["\u043E", "\u041E"], ["\u043B", "\u041B"], ["\u0434", "\u0414"], ["\u0436", "\u0416"], ["\u044D", "\u042D"], ["\\", "/"]], |
||
408 | [["Shift", "Shift"], ["/", "|"], ["\u044F", "\u042F"], ["\u0447", "\u0427"], ["\u0441", "\u0421"], ["\u043C", "\u041C"], ["\u0438", "\u0418"], ["\u0442", "\u0422"], ["\u044C", "\u042C"], ["\u0431", "\u0411"], ["\u044E", "\u042E"], [".", ","], ["Shift", "Shift"]], |
||
409 | [[" ", " "]] |
||
3262 | bpr | 410 | ]; this.VKI_layout.Russian.lang = ["ru"]; |
1013 | bpr | 411 | |
1220 | bpr | 412 | this.VKI_layout.SerbianCyr = [ // Serbian Cyrillic Standard Keyboard |
413 | [["`", "~"], ["1", "!"], ["2", '"'], ["3", "#"], ["4", "$"], ["5", "%"], ["6", "&"], ["7", "/"], ["8", "("], ["9", ")"], ["0", "="], ["'", "?"], ["+", "*"], ["Bksp", "Bksp"]], |
||
414 | [["Tab", "Tab"], ["\u0459", "\u0409"], ["\u045a", "\u040a"], ["\u0435", "\u0415", "\u20ac"], ["\u0440", "\u0420"], ["\u0442", "\u0422"], ["\u0437", "\u0417"], ["\u0443", "\u0423"], ["\u0438", "\u0418"], ["\u043e", "\u041e"], ["\u043f", "\u041f"], ["\u0448", "\u0428"], ["\u0452", "\u0402"], ["Enter", "Enter"]], |
||
415 | [["Caps", "Caps"], ["\u0430", "\u0410"], ["\u0441", "\u0421"], ["\u0434", "\u0414"], ["\u0444", "\u0424"], ["\u0433", "\u0413"], ["\u0445", "\u0425"], ["\u0458", "\u0408"], ["\u043a", "\u041a"], ["\u043b", "\u041b"], ["\u0447", "\u0427"], ["\u045b", "\u040b"], ["\u0436", "\u0416"]], |
||
416 | [["Shift", "Shift"], ["<", ">"], ["\u0455", "\u0405"], ["\u045f", "\u040f"], ["\u0446", "\u0426"], ["\u0432", "\u0412"], ["\u0431", "\u0411"], ["\u043d", "\u041d"], ["\u043c", "\u041c"], [",", ";", "<"], [".", ":", ">"], ["-", "_", "\u00a9"], ["Shift", "Shift"]], |
||
417 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 418 | ]; this.VKI_layout.SerbianCyr.lang = ["sr-Cyrl"]; |
1220 | bpr | 419 | |
420 | this.VKI_layout.SerbianLat = [ // Serbian Latin Standard Keyboard |
||
421 | [["\u201a", "~"], ["1", "!", "~"], ["2", '"', "\u02c7"], ["3", "#", "^"], ["4", "$", "\u02d8"], ["5", "%", "\u00b0"], ["6", "&", "\u02db"], ["7", "/", "`"], ["8", "(", "\u02d9"], ["9", ")", "\u00b4"], ["0", "=", "\u02dd"], ["'", "?", "\u00a8"], ["+", "*", "\u00b8"], ["Bksp", "Bksp"]], |
||
422 | [["Tab", "Tab"], ["q", "Q", "\\"], ["w", "W","|"], ["e", "E", "\u20ac"], ["r", "R"], ["t", "T"], ["z", "Z"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["\u0161", "\u0160", "\u00f7"], ["\u0111", "\u0110", "\u00d7"], ["Enter", "Enter"]], |
||
423 | [["Caps", "Caps"], ["a", "A"], ["s", "S"], ["d", "D"], ["f", "F", "["], ["g", "G", "]"], ["h", "H"], ["j", "J"], ["k", "K", "\u0142"], ["l", "L", "\u0141"], ["\u010d", "\u010c"], ["\u0107", "\u0106", "\u00df"], ["\u017e", "\u017d", "\u00a4"]], |
||
424 | [["Shift", "Shift"], ["<", ">"], ["y", "Y"], ["x", "X"], ["c", "C"], ["v", "V", "@"], ["b", "B", "{",], ["n", "N", "}"], ["m", "M", "\u00a7"], [",", ";", "<"], [".", ":", ">"], ["-", "_", "\u00a9"], ["Shift", "Shift"]], |
||
425 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 426 | ]; this.VKI_layout.SerbianLat.lang = ["sr"]; |
1220 | bpr | 427 | |
428 | this.VKI_layout.Slovak = [ // Slovak Keyboard |
||
429 | [[";", "\u00b0"], ["+", "1", "~"], ["\u013E", "2", "\u02C7"], ["\u0161", "3", "\u005E"], ["\u010D", "4", "\u02D8"], ["\u0165", "5", "\u00B0"], ["\u017E", "6", "\u02DB"], ["\u00FD", "7", "\u0060"], ["\u00E1", "8", "\u02D9"], ["\u00ED", "9", "\u00B4"], ["\u00E9", "0", "\u02DD"], ["=", "%", "\u00A8"], ["\u00B4", "\u02c7", "\u00B8"], ["Bksp", "Bksp"]], |
||
430 | [["Tab", "Tab"], ["q", "Q","\u005C"], ["w", "W","\u007C"], ["e", "E", "\u20AC"], ["r", "R"], ["t", "T"], ["z", "Z"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P","\u0027"], ["\u00FA", "/", "\u00F7"], ["\u00E4", "(", "\u00D7"], ["Enter", "Enter"]], |
||
431 | [["Caps", "Caps"], ["a", "A"], ["s", "S","\u0111"], ["d", "D","\u0110"], ["f", "F","\u005B"], ["g", "G","\u005D"], ["h", "H"], ["j", "J"], ["k", "K","\u0142"], ["l", "L","\u0141"], ["\u00F4", '"', "\u0024"], ["\u00A7", "!", "\u00DF",], ["\u0148", ")","\u00A4"]], |
||
432 | [["Shift", "Shift"], ["&", "*", "\u003C"], ["y", "Y","\u003E"], ["x", "X","\u0023"], ["c", "C","\u0026"], ["v", "V","\u0040"], ["b", "B","\u007B"], ["n", "N","\u007D"], ["m", "M"], [",", "?", "<"], [".", ":", ">"], ["-", "_", "\u002A", ], ["Shift", "Shift"]], |
||
433 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 434 | ]; this.VKI_layout.Slovak.lang = ["sk"]; |
1220 | bpr | 435 | |
1013 | bpr | 436 | this.VKI_layout.Slovenian = [ // Slovenian Standard Keyboard |
437 | [["\u00a8", "\u00a8", "\u00b8"], ["1", "!", "~"], ["2", '"', "\u02c7"], ["3", "#", "^"], ["4", "$", "\u02d8"], ["5", "%", "\u00b0"], ["6", "&", "\u02db"], ["7", "/", "\u0060"], ["8", "(", "\u00B7"], ["9", ")", "\u00b4"], ["0", "=", "\u2033"], ["'", "?", "\u00a8"], ["+", "*", "\u00b8"], ["Bksp", "Bksp"]], |
||
438 | [["Tab", "Tab"], ["q", "Q", "\\"], ["w", "W","|"], ["e", "E", "\u20ac"], ["r", "R"], ["t", "T"], ["z", "Z"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["\u0161", "\u0160", "\u00f7"], ["\u0111", "\u0110", "\u00d7"], ["Enter", "Enter"]], |
||
439 | [["Caps", "Caps"], ["a", "A"], ["s", "S"], ["d", "D"], ["f", "F", "["], ["g", "G", "]"], ["h", "H"], ["j", "J"], ["k", "K", "\u0142"], ["l", "L", "\u0141"], ["\u010D", "\u010C"], ["\u0107", "\u0106", "\u00df"], ["\u017E", "\u017D", "\u00a4"]], |
||
440 | [["Shift", "Shift"], ["<", ">"], ["y", "Y"], ["x", "X"], ["c", "C"], ["v", "V", "@"], ["b", "B", "{",], ["n", "N", "}"], ["m", "M", "\u00a7"], [",", ";"], [".", ":"], ["-", "_"], ["Shift", "Shift"]], |
||
441 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 442 | ]; this.VKI_layout.Slovenian.lang = ["sl"]; |
1013 | bpr | 443 | |
3131 | bpr | 444 | this.VKI_layout["Spanish Es"] = [ // Spanish (Spain) Standard Keyboard |
1013 | bpr | 445 | [["\u00ba", "\u00aa", "\\"], ["1", "!", "|"], ["2", '"', "@"], ["3", "'", "#"], ["4", "$", "~"], ["5", "%", "\u20ac"], ["6", "&","\u00ac"], ["7", "/"], ["8", "("], ["9", ")"], ["0", "="], ["'", "?"], ["\u00a1", "\u00bf"], ["Bksp", "Bksp"]], |
446 | [["Tab", "Tab"], ["q", "Q"], ["w", "W"], ["e", "E"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["\u0060", "^", "["], ["\u002b", "\u002a", "]"], ["Enter", "Enter"]], |
||
447 | [["Caps", "Caps"], ["a", "A"], ["s", "S"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], ["\u00f1", "\u00d1"], ["\u00b4", "\u00a8", "{"], ["\u00e7", "\u00c7", "}"]], |
||
448 | [["Shift", "Shift"], ["<", ">"], ["z", "Z"], ["x", "X"], ["c", "C"], ["v", "V"], ["b", "B"], ["n", "N"], ["m", "M"], [",", ";"], [".", ":"], ["-", "_"], ["Shift", "Shift"]], |
||
449 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 450 | ]; this.VKI_layout["Spanish Es"].lang = ["es"]; |
1013 | bpr | 451 | |
452 | this.VKI_layout.Swedish = [ // Swedish Standard Keyboard |
||
453 | [["\u00a7", "\u00bd"], ["1", "!"], ["2", '"', "@"], ["3", "#", "\u00a3"], ["4", "\u00a4", "$"], ["5", "%", "\u20ac"], ["6", "&"], ["7", "/", "{"], ["8", "(", "["], ["9", ")", "]"], ["0", "=", "}"], ["+", "?", "\\"], ["\u00b4", "`"], ["Bksp", "Bksp"]], |
||
454 | [["Tab", "Tab"], ["q", "Q"], ["w", "W"], ["e", "E", "\u20ac"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["\u00e5", "\u00c5"], ["\u00a8", "^", "~"], ["Enter", "Enter"]], |
||
455 | [["Caps", "Caps"], ["a", "A"], ["s", "S"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], ["\u00f6", "\u00d6"], ["\u00e4", "\u00c4"], ["'", "*"]], |
||
456 | [["Shift", "Shift"], ["<", ">", "|"], ["z", "Z"], ["x", "X"], ["c", "C"], ["v", "V"], ["b", "B"], ["n", "N"], ["m", "M", "\u03bc", "\u039c"], [",", ";"], [".", ":"], ["-", "_"], ["Shift", "Shift"]], |
||
457 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 458 | ]; this.VKI_layout.Swedish.lang = ["sv"]; |
1013 | bpr | 459 | |
460 | this.VKI_layout["Turkish-F"] = [ // Turkish F Keyboard Layout |
||
461 | [['+', "*", "\u00ac"], ["1", "!", "\u00b9", "\u00a1"], ["2", '"', "\u00b2"], ["3", "^", "#", "\u00b3"], ["4", "$", "\u00bc", "\u00a4"], ["5", "%", "\u00bd"], ["6", "&", "\u00be"], ["7", "'", "{"], ["8", "(", '['], ["9", ")", ']'], ["0", "=", "}"], ["/", "?", "\\", "\u00bf"], ["-", "_", "|"], ["Bksp", "Bksp"]], |
||
462 | [["Tab", "Tab"], ["f", "F", "@"], ["g", "G"], ["\u011f", "\u011e"], ["\u0131", "\u0049", "\u00b6", "\u00ae"], ["o", "O"], ["d", "D", "\u00a5"], ["r", "R"], ["n", "N"], ["h", "H", "\u00f8", "\u00d8"], ["p", "P", "\u00a3"], ["q", "Q", "\u00a8"], ["w", "W", "~"], ["Enter", "Enter"]], |
||
463 | [["Caps", "Caps"], ["u", "U", "\u00e6", "\u00c6"], ["i", "\u0130", "\u00df", "\u00a7"], ["e", "E", "\u20ac"], ["a", "A", " ", "\u00aa"], ["\u00fc", "\u00dc"], ["t", "T"], ["k", "K"], ["m", "M"], ["l", "L"], ["y", "Y", "\u00b4"], ["\u015f", "\u015e"], ["x", "X", "`"]], |
||
464 | [["Shift", "Shift"], ["<", ">", "|", "\u00a6"], ["j", "J", "\u00ab", "<"], ["\u00f6", "\u00d6", "\u00bb", ">"], ["v", "V", "\u00a2", "\u00a9"], ["c", "C"], ["\u00e7", "\u00c7"], ["z", "Z"], ["s", "S", "\u00b5", "\u00ba"], ["b", "B", "\u00d7"], [".", ":", "\u00f7"], [",", ";", "-"], ["Shift", "Shift"]], |
||
465 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
466 | ]; |
||
467 | |||
468 | this.VKI_layout["Turkish-Q"] = [ // Turkish Q Keyboard Layout |
||
469 | [['"', "\u00e9", "<"], ["1", "!", ">"], ["2", "'", "\u00a3"], ["3", "^", "#"], ["4", "+", "$"], ["5", "%", "\u00bd"], ["6", "&"], ["7", "/", "{"], ["8", "(", '['], ["9", ")", ']'], ["0", "=", "}"], ["*", "?", "\\"], ["-", "_", "|"], ["Bksp", "Bksp"]], |
||
470 | [["Tab", "Tab"], ["q", "Q", "@"], ["w", "W"], ["e", "E", "\u20ac"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U"], ["\u0131", "\u0049", "\u0069", "\u0130"], ["o", "O"], ["p", "P"], ["\u011f", "\u011e", "\u00a8"], ["\u00fc", "\u00dc", "~"], ["Enter", "Enter"]], |
||
471 | [["Caps", "Caps"], ["a", "A", "\u00e6", "\u00c6"], ["s", "S", "\u00df"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], ["\u015f", "\u015e", "\u00b4"], ["\u0069", "\u0130"], [",", ";", "`"]], |
||
472 | [["Shift", "Shift"], ["<", ">", "|"], ["z", "Z"], ["x", "X"], ["c", "C"], ["v", "V"], ["b", "B"], ["n", "N"], ["m", "M"], ["\u00f6", "\u00d6"], ["\u00e7", "\u00c7"], [".", ":"], ["Shift", "Shift"]], |
||
473 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 474 | ]; this.VKI_layout["Turkish-Q"].lang = ["tr"]; |
1013 | bpr | 475 | |
476 | this.VKI_layout.UK = [ // UK Standard Keyboard |
||
477 | [["`", "\u00ac", "\u00a6"], ["1", "!"], ["2", '"'], ["3", "\u00a3"], ["4", "$", "\u20ac"], ["5", "%"], ["6", "^"], ["7", "&"], ["8", "*"], ["9", "("], ["0", ")"], ["-", "_"], ["=", "+"], ["Bksp", "Bksp"]], |
||
478 | [["Tab", "Tab"], ["q", "Q"], ["w", "W"], ["e", "E", "\u00e9", "\u00c9"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U", "\u00fa", "\u00da"], ["i", "I", "\u00ed", "\u00cd"], ["o", "O", "\u00f3", "\u00d3"], ["p", "P"], ["[", "{"], ["]", "}"], ["Enter", "Enter"]], |
||
479 | [["Caps", "Caps"], ["a", "A", "\u00e1", "\u00c1"], ["s", "S"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], [";", ":"], ["'", "@"], ["#", "~"]], |
||
480 | [["Shift", "Shift"], ["\\", "|"], ["z", "Z"], ["x", "X"], ["c", "C"], ["v", "V"], ["b", "B"], ["n", "N"], ["m", "M"], [",", "<"], [".", ">"], ["/", "?"], ["Shift", "Shift"]], |
||
481 | [[" ", " ", " ", " "], ["AltGr", "AltGr"]] |
||
3262 | bpr | 482 | ]; this.VKI_layout.UK.lang = ["en-gb"]; |
1013 | bpr | 483 | |
3131 | bpr | 484 | this.VKI_layout.Ukrainian = [ // Ukrainian Standard Keyboard |
485 | [["\u00b4", "~"], ["1", "!"], ["2", '"'], ["3", "\u2116"], ["4", ";"], ["5", "%"], ["6", ":"], ["7", "?"], ["8", "*"], ["9", "("], ["0", ")"], ["-", "_"], ["=", "+"], ["Bksp", "Bksp"]], |
||
486 | [["Tab", "Tab"], ["\u0439", "\u0419"], ["\u0446", "\u0426"], ["\u0443", "\u0423"], ["\u043A", "\u041A"], ["\u0435", "\u0415"], ["\u043D", "\u041D"], ["\u0433", "\u0413"], ["\u0448", "\u0428"], ["\u0449", "\u0429"], ["\u0437", "\u0417"], ["\u0445", "\u0425"], ["\u0457", "\u0407"], ["\u0491", "\u0490"]], |
||
487 | [["Caps", "Caps"], ["\u0444", "\u0424"], ["\u0456", "\u0406"], ["\u0432", "\u0412"], ["\u0430", "\u0410"], ["\u043F", "\u041F"], ["\u0440", "\u0420"], ["\u043E", "\u041E"], ["\u043B", "\u041B"], ["\u0434", "\u0414"], ["\u0436", "\u0416"], ["\u0454", "\u0404"], ["Enter", "Enter"]], |
||
488 | [["Shift", "Shift"], ["\u044F", "\u042F"], ["\u0447", "\u0427"], ["\u0441", "\u0421"], ["\u043C", "\u041C"], ["\u0438", "\u0418"], ["\u0442", "\u0422"], ["\u044C", "\u042C"], ["\u0431", "\u0411"], ["\u044E", "\u042E"], [".", ","], ["Shift", "Shift"]], |
||
489 | [[" ", " "]] |
||
3262 | bpr | 490 | ]; this.VKI_layout.Ukrainian.lang = ["uk"]; |
3131 | bpr | 491 | |
1013 | bpr | 492 | this.VKI_layout.US = [ // US Standard Keyboard |
493 | [["`", "~"], ["1", "!"], ["2", "@"], ["3", "#"], ["4", "$"], ["5", "%"], ["6", "^"], ["7", "&"], ["8", "*"], ["9", "("], ["0", ")"], ["-", "_"], ["=", "+"], ["Bksp", "Bksp"]], |
||
494 | [["Tab", "Tab"], ["q", "Q"], ["w", "W"], ["e", "E"], ["r", "R"], ["t", "T"], ["y", "Y"], ["u", "U"], ["i", "I"], ["o", "O"], ["p", "P"], ["[", "{"], ["]", "}"], ["\\", "|"]], |
||
495 | [["Caps", "Caps"], ["a", "A"], ["s", "S"], ["d", "D"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L"], [";", ":"], ["'", '"'], ["Enter", "Enter"]], |
||
496 | [["Shift", "Shift"], ["z", "Z"], ["x", "X"], ["c", "C"], ["v", "V"], ["b", "B"], ["n", "N"], ["m", "M"], [",", "<"], [".", ">"], ["/", "?"], ["Shift", "Shift"]], |
||
497 | [[" ", " "]] |
||
3262 | bpr | 498 | ]; this.VKI_layout.US.lang = ["en-us"]; |
1013 | bpr | 499 | |
500 | this.VKI_layout["US Int'l"] = [ // US International Keyboard |
||
501 | [["`", "~"], ["1", "!", "\u00a1", "\u00b9"], ["2", "@", "\u00b2"], ["3", "#", "\u00b3"], ["4", "$", "\u00a4", "\u00a3"], ["5", "%", "\u20ac"], ["6", "^", "\u00bc"], ["7", "&", "\u00bd"], ["8", "*", "\u00be"], ["9", "(", "\u2018"], ["0", ")", "\u2019"], ["-", "_", "\u00a5"], ["=", "+", "\u00d7", "\u00f7"], ["Bksp", "Bksp"]], |
||
502 | [["Tab", "Tab"], ["q", "Q", "\u00e4", "\u00c4"], ["w", "W", "\u00e5", "\u00c5"], ["e", "E", "\u00e9", "\u00c9"], ["r", "R", "\u00ae"], ["t", "T", "\u00fe", "\u00de"], ["y", "Y", "\u00fc", "\u00dc"], ["u", "U", "\u00fa", "\u00da"], ["i", "I", "\u00ed", "\u00cd"], ["o", "O", "\u00f3", "\u00d3"], ["p", "P", "\u00f6", "\u00d6"], ["[", "{", "\u00ab"], ["]", "}", "\u00bb"], ["\\", "|", "\u00ac", "\u00a6"]], |
||
503 | [["Caps", "Caps"], ["a", "A", "\u00e1", "\u00c1"], ["s", "S", "\u00df", "\u00a7"], ["d", "D", "\u00f0", "\u00d0"], ["f", "F"], ["g", "G"], ["h", "H"], ["j", "J"], ["k", "K"], ["l", "L", "\u00f8", "\u00d8"], [";", ":", "\u00b6", "\u00b0"], ["'", '"', "\u00b4", "\u00a8"], ["Enter", "Enter"]], |
||
504 | [["Shift", "Shift"], ["z", "Z", "\u00e6", "\u00c6"], ["x", "X"], ["c", "C", "\u00a9", "\u00a2"], ["v", "V"], ["b", "B"], ["n", "N", "\u00f1", "\u00d1"], ["m", "M", "\u00b5"], [",", "<", "\u00e7", "\u00c7"], [".", ">"], ["/", "?", "\u00bf"], ["Shift", "Shift"]], |
||
505 | [[" ", " ", " ", " "], ["Alt", "Alt"]] |
||
3262 | bpr | 506 | ]; this.VKI_layout["US Int'l"].lang = ["en"]; |
1013 | bpr | 507 | |
3131 | bpr | 508 | |
1013 | bpr | 509 | /* ***** Define Dead Keys ************************************** */ |
510 | this.VKI_deadkey = {}; |
||
511 | |||
512 | // - Lay out each dead key set in one row of sub-arrays. The rows |
||
513 | // below are wrapped so uppercase letters are below their |
||
514 | // lowercase equivalents. |
||
515 | // |
||
516 | // - The first letter in each sub-array is the letter pressed after |
||
517 | // the diacritic. The second letter is the letter this key-combo |
||
518 | // will generate. |
||
519 | // |
||
520 | // - Note that if you have created a new keyboard layout and want |
||
521 | // it included in the distributed script, PLEASE TELL ME if you |
||
522 | // have added additional dead keys to the ones below. |
||
523 | |||
524 | this.VKI_deadkey['"'] = this.VKI_deadkey['\u00a8'] = [ // Umlaut / Diaeresis / Greek Dialytika |
||
3131 | bpr | 525 | ["a", "\u00e4"], ["e", "\u00eb"], ["i", "\u00ef"], ["o", "\u00f6"], ["u", "\u00fc"], ["y", "\u00ff"], ["\u03b9", "\u03ca"], ["\u03c5", "\u03cb"], ["\u016B", "\u01D6"], ["\u00FA", "\u01D8"], ["\u01D4", "\u01DA"], ["\u00F9", "\u01DC"], |
3262 | bpr | 526 | ["A", "\u00c4"], ["E", "\u00cb"], ["I", "\u00cf"], ["O", "\u00d6"], ["U", "\u00dc"], ["Y", "\u0178"], ["\u0399", "\u03aa"], ["\u03a5", "\u03ab"], ["\u016A", "\u01D5"], ["\u00DA", "\u01D7"], ["\u01D3", "\u01D9"], ["\u00D9", "\u01DB"], |
527 | ["\u304b", "\u304c"], ["\u304d", "\u304e"], ["\u304f", "\u3050"], ["\u3051", "\u3052"], ["\u3053", "\u3054"], |
||
528 | ["\u305f", "\u3060"], ["\u3061", "\u3062"], ["\u3064", "\u3065"], ["\u3066", "\u3067"], ["\u3068", "\u3069"], |
||
529 | ["\u3055", "\u3056"], ["\u3057", "\u3058"], ["\u3059", "\u305a"], ["\u305b", "\u305c"], ["\u305d", "\u305e"], |
||
530 | ["\u306f", "\u3070"], ["\u3072", "\u3073"], ["\u3075", "\u3076"], ["\u3078", "\u3079"], ["\u307b", "\u307c"], |
||
531 | ["\u30ab", "\u30ac"], ["\u30ad", "\u30ae"], ["\u30af", "\u30b0"], ["\u30b1", "\u30b2"], ["\u30b3", "\u30b4"], |
||
532 | ["\u30bf", "\u30c0"], ["\u30c1", "\u30c2"], ["\u30c4", "\u30c5"], ["\u30c6", "\u30c7"], ["\u30c8", "\u30c9"], |
||
533 | ["\u30b5", "\u30b6"], ["\u30b7", "\u30b8"], ["\u30b9", "\u30ba"], ["\u30bb", "\u30bc"], ["\u30bd", "\u30be"], |
||
534 | ["\u30cf", "\u30d0"], ["\u30d2", "\u30d3"], ["\u30d5", "\u30d6"], ["\u30d8", "\u30d9"], ["\u30db", "\u30dc"] |
||
1013 | bpr | 535 | ]; |
3131 | bpr | 536 | this.VKI_deadkey['~'] = [ // Tilde / Stroke |
537 | ["a", "\u00e3"], ["l", "\u0142"], ["n", "\u00f1"], ["o", "\u00f5"], |
||
538 | ["A", "\u00c3"], ["L", "\u0141"], ["N", "\u00d1"], ["O", "\u00d5"] |
||
1013 | bpr | 539 | ]; |
540 | this.VKI_deadkey['^'] = [ // Circumflex |
||
541 | ["a", "\u00e2"], ["e", "\u00ea"], ["i", "\u00ee"], ["o", "\u00f4"], ["u", "\u00fb"], ["w", "\u0175"], ["y", "\u0177"], |
||
542 | ["A", "\u00c2"], ["E", "\u00ca"], ["I", "\u00ce"], ["O", "\u00d4"], ["U", "\u00db"], ["W", "\u0174"], ["Y", "\u0176"] |
||
543 | ]; |
||
544 | this.VKI_deadkey['\u02c7'] = [ // Baltic caron |
||
3131 | bpr | 545 | ["c", "\u010D"], ["d", "\u010f"], ["e", "\u011b"], ["s", "\u0161"], ["l", "\u013e"], ["n", "\u0148"], ["r", "\u0159"], ["t", "\u0165"], ["u", "\u01d4"], ["z", "\u017E"], ["\u00fc", "\u01da"], |
546 | ["C", "\u010C"], ["D", "\u010e"], ["E", "\u011a"], ["S", "\u0160"], ["L", "\u013d"], ["N", "\u0147"], ["R", "\u0158"], ["T", "\u0164"], ["U", "\u01d3"], ["Z", "\u017D"], ["\u00dc", "\u01d9"] |
||
1013 | bpr | 547 | ]; |
548 | this.VKI_deadkey['\u02d8'] = [ // Romanian and Turkish breve |
||
549 | ["a", "\u0103"], ["g", "\u011f"], |
||
550 | ["A", "\u0102"], ["G", "\u011e"] |
||
551 | ]; |
||
3131 | bpr | 552 | this.VKI_deadkey['-'] = this.VKI_deadkey['\u00af'] = [ // Macron |
553 | ["a", "\u0101"], ["e", "\u0113"], ["i", "\u012b"], ["o", "\u014d"], ["u", "\u016B"], ["y", "\u0233"], ["\u00fc", "\u01d6"], |
||
554 | ["A", "\u0100"], ["E", "\u0112"], ["I", "\u012a"], ["O", "\u014c"], ["U", "\u016A"], ["Y", "\u0232"], ["\u00dc", "\u01d5"] |
||
555 | ]; |
||
1013 | bpr | 556 | this.VKI_deadkey['`'] = [ // Grave |
3131 | bpr | 557 | ["a", "\u00e0"], ["e", "\u00e8"], ["i", "\u00ec"], ["o", "\u00f2"], ["u", "\u00f9"], ["\u00fc", "\u01dc"], |
558 | ["A", "\u00c0"], ["E", "\u00c8"], ["I", "\u00cc"], ["O", "\u00d2"], ["U", "\u00d9"], ["\u00dc", "\u01db"] |
||
1013 | bpr | 559 | ]; |
560 | this.VKI_deadkey["'"] = this.VKI_deadkey['\u00b4'] = this.VKI_deadkey['\u0384'] = [ // Acute / Greek Tonos |
||
3131 | bpr | 561 | ["a", "\u00e1"], ["e", "\u00e9"], ["i", "\u00ed"], ["o", "\u00f3"], ["u", "\u00fa"], ["y", "\u00fd"], ["\u03b1", "\u03ac"], ["\u03b5", "\u03ad"], ["\u03b7", "\u03ae"], ["\u03b9", "\u03af"], ["\u03bf", "\u03cc"], ["\u03c5", "\u03cd"], ["\u03c9", "\u03ce"], ["\u00fc", "\u01d8"], |
562 | ["A", "\u00c1"], ["E", "\u00c9"], ["I", "\u00cd"], ["O", "\u00d3"], ["U", "\u00da"], ["Y", "\u00dd"], ["\u0391", "\u0386"], ["\u0395", "\u0388"], ["\u0397", "\u0389"], ["\u0399", "\u038a"], ["\u039f", "\u038c"], ["\u03a5", "\u038e"], ["\u03a9", "\u038f"], ["\u00dc", "\u01d7"] |
||
1013 | bpr | 563 | ]; |
564 | this.VKI_deadkey['\u02dd'] = [ // Hungarian Double Acute Accent |
||
565 | ["o", "\u0151"], ["u", "\u0171"], |
||
566 | ["O", "\u0150"], ["U", "\u0170"] |
||
567 | ]; |
||
568 | this.VKI_deadkey['\u0385'] = [ // Greek Dialytika + Tonos |
||
569 | ["\u03b9", "\u0390"], ["\u03c5", "\u03b0"] |
||
570 | ]; |
||
571 | this.VKI_deadkey['\u00b0'] = this.VKI_deadkey['\u00ba'] = [ // Ring |
||
572 | ["a", "\u00e5"], ["u", "\u016f"], |
||
573 | ["A", "\u00c5"], ["U", "\u016e"] |
||
574 | ]; |
||
575 | this.VKI_deadkey['\u02DB'] = [ // Ogonek |
||
576 | ["a", "\u0106"], ["e", "\u0119"], ["i", "\u012f"], ["o", "\u01eb"], ["u", "\u0173"], ["y", "\u0177"], |
||
577 | ["A", "\u0105"], ["E", "\u0118"], ["I", "\u012e"], ["O", "\u01ea"], ["U", "\u0172"], ["Y", "\u0176"] |
||
578 | ]; |
||
579 | this.VKI_deadkey['\u02D9'] = [ // Dot-above |
||
580 | ["c", "\u010B"], ["e", "\u0117"], ["g", "\u0121"], ["z", "\u017C"], |
||
581 | ["C", "\u010A"], ["E", "\u0116"], ["G", "\u0120"], ["Z", "\u017B"] |
||
582 | ]; |
||
1220 | bpr | 583 | this.VKI_deadkey['\u00B8'] = this.VKI_deadkey['\u201a'] = [ // Cedilla |
1013 | bpr | 584 | ["c", "\u00e7"], ["s", "\u015F"], |
585 | ["C", "\u00c7"], ["S", "\u015E"] |
||
586 | ]; |
||
587 | this.VKI_deadkey[','] = [ // Comma |
||
588 | ["s", (this.VKI_isIElt8) ? "\u015F" : "\u0219"], ["t", (this.VKI_isIElt8) ? "\u0163" : "\u021B"], |
||
589 | ["S", (this.VKI_isIElt8) ? "\u015E" : "\u0218"], ["T", (this.VKI_isIElt8) ? "\u0162" : "\u021A"] |
||
590 | ]; |
||
3262 | bpr | 591 | this.VKI_deadkey['\u3002'] = [ // Hiragana/Katakana Point |
592 | ["\u306f", "\u3071"], ["\u3072", "\u3074"], ["\u3075", "\u3077"], ["\u3078", "\u307a"], ["\u307b", "\u307d"], |
||
593 | ["\u30cf", "\u30d1"], ["\u30d2", "\u30d4"], ["\u30d5", "\u30d7"], ["\u30d8", "\u30da"], ["\u30db", "\u30dd"] |
||
594 | ]; |
||
1013 | bpr | 595 | |
596 | |||
3131 | bpr | 597 | /* ***** Define Symbols **************************************** */ |
598 | this.VKI_symbol = { |
||
599 | '\u200c': "ZW\r\nNJ", '\u200d': "ZW\r\nJ" |
||
600 | }; |
||
1013 | bpr | 601 | |
3131 | bpr | 602 | |
603 | |||
1013 | bpr | 604 | /* **************************************************************** |
605 | * Attach the keyboard to an element |
||
606 | * |
||
607 | */ |
||
608 | this.VKI_attachKeyboard = VKI_attach = function(elem) { |
||
609 | if (elem.VKI_attached) return false; |
||
610 | var keybut = document.createElement('img'); |
||
3262 | bpr | 611 | keybut.src = this.VKI_imageURI; |
612 | keybut.alt = this.VKI_i18n['00']; |
||
1013 | bpr | 613 | keybut.className = "keyboardInputInitiator"; |
3262 | bpr | 614 | keybut.title = this.VKI_i18n['01']; |
1013 | bpr | 615 | keybut.elem = elem; |
616 | keybut.onclick = function() { self.VKI_show(this.elem); }; |
||
617 | elem.VKI_attached = true; |
||
1220 | bpr | 618 | elem.parentNode.insertBefore(keybut, (elem.dir == "rtl") ? elem : elem.nextSibling); |
1013 | bpr | 619 | if (this.VKI_isIE) { |
620 | elem.onclick = elem.onselect = elem.onkeyup = function(e) { |
||
621 | if ((e || event).type != "keyup" || !this.readOnly) |
||
622 | this.range = document.selection.createRange(); |
||
623 | }; |
||
624 | } |
||
625 | }; |
||
626 | |||
627 | |||
628 | /* ***** Find tagged input & textarea elements ***************** */ |
||
629 | var inputElems = [ |
||
630 | document.getElementsByTagName('input'), |
||
631 | document.getElementsByTagName('textarea') |
||
632 | ]; |
||
633 | for (var x = 0, elem; elem = inputElems[x++];) |
||
634 | for (var y = 0, ex; ex = elem[y++];) |
||
635 | if ((ex.nodeName == "TEXTAREA" || ex.type == "text" || ex.type == "password") && ex.className.indexOf("keyboardInput") > -1) |
||
636 | this.VKI_attachKeyboard(ex); |
||
637 | |||
638 | |||
639 | /* ***** Build the keyboard interface ************************** */ |
||
640 | this.VKI_keyboard = document.createElement('table'); |
||
641 | this.VKI_keyboard.id = "keyboardInputMaster"; |
||
642 | this.VKI_keyboard.dir = "ltr"; |
||
643 | this.VKI_keyboard.cellSpacing = this.VKI_keyboard.border = "0"; |
||
644 | |||
645 | var thead = document.createElement('thead'); |
||
646 | var tr = document.createElement('tr'); |
||
647 | var th = document.createElement('th'); |
||
3262 | bpr | 648 | var abbr = document.createElement('abbr'); |
649 | abbr.title = this.VKI_i18n['00']; |
||
650 | abbr.appendChild(document.createTextNode('VKI')); |
||
651 | th.appendChild(abbr); |
||
652 | |||
1013 | bpr | 653 | var kblist = document.createElement('select'); |
3262 | bpr | 654 | kblist.title = this.VKI_i18n['02']; |
1013 | bpr | 655 | for (ktype in this.VKI_layout) { |
656 | if (typeof this.VKI_layout[ktype] == "object") { |
||
3262 | bpr | 657 | if (!this.VKI_layout[ktype].lang) this.VKI_layout[ktype].lang = []; |
1013 | bpr | 658 | var opt = document.createElement('option'); |
659 | opt.value = ktype; |
||
660 | opt.appendChild(document.createTextNode(ktype)); |
||
661 | kblist.appendChild(opt); |
||
662 | } |
||
663 | } |
||
664 | if (kblist.options.length) { |
||
665 | kblist.value = this.VKI_kt; |
||
666 | kblist.onchange = function() { |
||
3262 | bpr | 667 | self.VKI_kts = self.VKI_kt = this.value; |
1013 | bpr | 668 | self.VKI_buildKeys(); |
3262 | bpr | 669 | self.VKI_position(true); |
1013 | bpr | 670 | }; |
671 | th.appendChild(kblist); |
||
672 | } |
||
673 | |||
3262 | bpr | 674 | if (this.VKI_sizeAdj) { |
675 | this.VKI_size = Math.min(5, Math.max(1, this.VKI_size)); |
||
676 | var kbsize = document.createElement('select'); |
||
677 | kbsize.title = this.VKI_i18n['10']; |
||
678 | for (var x = 1; x <= 5; x++) { |
||
679 | var opt = document.createElement('option'); |
||
680 | opt.value = x; |
||
681 | opt.appendChild(document.createTextNode(x)); |
||
682 | kbsize.appendChild(opt); |
||
683 | } kbsize.value = this.VKI_size; |
||
684 | kbsize.onchange = function() { |
||
685 | self.VKI_keyboard.className = self.VKI_keyboard.className.replace(/ ?keyboardInputSize\d ?/, ""); |
||
686 | if (this.value != 2) self.VKI_keyboard.className += " keyboardInputSize" + this.value; |
||
687 | self.VKI_position(true); |
||
688 | }; |
||
689 | th.appendChild(kbsize); |
||
690 | } |
||
691 | |||
1013 | bpr | 692 | var label = document.createElement('label'); |
693 | var checkbox = document.createElement('input'); |
||
694 | checkbox.type = "checkbox"; |
||
3262 | bpr | 695 | checkbox.title = this.VKI_i18n['03'] + ": " + ((this.VKI_deadkeysOn) ? this.VKI_i18n['04'] : this.VKI_i18n['05']); |
1013 | bpr | 696 | checkbox.defaultChecked = this.VKI_deadkeysOn; |
697 | checkbox.onclick = function() { |
||
698 | self.VKI_deadkeysOn = this.checked; |
||
3262 | bpr | 699 | this.title = self.VKI_i18n['03'] + ": " + ((this.checked) ? self.VKI_i18n['04'] : self.VKI_i18n['05']); |
1013 | bpr | 700 | self.VKI_modify(""); |
701 | return true; |
||
702 | }; |
||
703 | label.appendChild(this.VKI_deadkeysElem = checkbox); |
||
704 | checkbox.checked = this.VKI_deadkeysOn; |
||
705 | th.appendChild(label); |
||
706 | tr.appendChild(th); |
||
707 | |||
708 | var td = document.createElement('td'); |
||
709 | var clearer = document.createElement('span'); |
||
710 | clearer.id = "keyboardInputClear"; |
||
3262 | bpr | 711 | clearer.appendChild(document.createTextNode(this.VKI_i18n['07'])); |
712 | clearer.title = this.VKI_i18n['08']; |
||
1013 | bpr | 713 | clearer.onmousedown = function() { this.className = "pressed"; }; |
714 | clearer.onmouseup = function() { this.className = ""; }; |
||
715 | clearer.onclick = function() { |
||
716 | self.VKI_target.value = ""; |
||
717 | self.VKI_target.focus(); |
||
718 | return false; |
||
719 | }; |
||
720 | td.appendChild(clearer); |
||
721 | |||
3262 | bpr | 722 | var closer = document.createElement('strong'); |
1013 | bpr | 723 | closer.id = "keyboardInputClose"; |
724 | closer.appendChild(document.createTextNode('X')); |
||
3262 | bpr | 725 | closer.title = this.VKI_i18n['06']; |
1013 | bpr | 726 | closer.onmousedown = function() { this.className = "pressed"; }; |
727 | closer.onmouseup = function() { this.className = ""; }; |
||
728 | closer.onclick = function() { self.VKI_close(); }; |
||
729 | td.appendChild(closer); |
||
730 | |||
731 | tr.appendChild(td); |
||
732 | thead.appendChild(tr); |
||
733 | this.VKI_keyboard.appendChild(thead); |
||
734 | |||
735 | var tbody = document.createElement('tbody'); |
||
736 | var tr = document.createElement('tr'); |
||
737 | var td = document.createElement('td'); |
||
738 | td.colSpan = "2"; |
||
739 | var div = document.createElement('div'); |
||
740 | div.id = "keyboardInputLayout"; |
||
741 | td.appendChild(div); |
||
742 | if (this.VKI_showVersion) { |
||
743 | var div = document.createElement('div'); |
||
744 | var ver = document.createElement('var'); |
||
3262 | bpr | 745 | ver.title = this.VKI_i18n['09'] + " " + this.VKI_version; |
1013 | bpr | 746 | ver.appendChild(document.createTextNode("v" + this.VKI_version)); |
747 | div.appendChild(ver); |
||
748 | td.appendChild(div); |
||
749 | } |
||
750 | tr.appendChild(td); |
||
751 | tbody.appendChild(tr); |
||
1220 | bpr | 752 | this.VKI_keyboard.appendChild(tbody); |
1013 | bpr | 753 | |
754 | if (this.VKI_isIE6) { |
||
755 | this.VKI_iframe = document.createElement('iframe'); |
||
756 | this.VKI_iframe.style.position = "absolute"; |
||
757 | this.VKI_iframe.style.border = "0px none"; |
||
758 | this.VKI_iframe.style.filter = "mask()"; |
||
759 | this.VKI_iframe.style.zIndex = "999999"; |
||
1220 | bpr | 760 | this.VKI_iframe.src = this.VKI_imageURI; |
1013 | bpr | 761 | } |
762 | |||
763 | |||
764 | /* **************************************************************** |
||
765 | * Build or rebuild the keyboard keys |
||
766 | * |
||
767 | */ |
||
768 | this.VKI_buildKeys = function() { |
||
3131 | bpr | 769 | this.VKI_shift = this.VKI_shiftlock = this.VKI_altgr = this.VKI_altgrlock = this.VKI_dead = false; |
770 | this.VKI_deadkeysOn = (this.VKI_layout[this.VKI_kt].DDK) ? false : this.VKI_keyboard.getElementsByTagName('label')[0].getElementsByTagName('input')[0].checked; |
||
1013 | bpr | 771 | |
772 | var container = this.VKI_keyboard.tBodies[0].getElementsByTagName('div')[0]; |
||
773 | while (container.firstChild) container.removeChild(container.firstChild); |
||
774 | |||
775 | for (var x = 0, hasDeadKey = false, lyt; lyt = this.VKI_layout[this.VKI_kt][x++];) { |
||
776 | var table = document.createElement('table'); |
||
777 | table.cellSpacing = table.border = "0"; |
||
778 | if (lyt.length <= this.VKI_keyCenter) table.className = "keyboardInputCenter"; |
||
779 | var tbody = document.createElement('tbody'); |
||
780 | var tr = document.createElement('tr'); |
||
781 | for (var y = 0, lkey; lkey = lyt[y++];) { |
||
782 | var td = document.createElement('td'); |
||
3131 | bpr | 783 | if (this.VKI_symbol[lkey[0]]) { |
784 | var span = document.createElement('span'); |
||
785 | span.className = lkey[0]; |
||
786 | span.appendChild(document.createTextNode(this.VKI_symbol[lkey[0]])); |
||
787 | td.appendChild(span); |
||
788 | } else td.appendChild(document.createTextNode(lkey[0] || "\xa0")); |
||
1013 | bpr | 789 | |
790 | var className = []; |
||
791 | if (this.VKI_deadkeysOn) |
||
792 | for (key in this.VKI_deadkey) |
||
793 | if (key === lkey[0]) { className.push("alive"); break; } |
||
794 | if (lyt.length > this.VKI_keyCenter && y == lyt.length) className.push("last"); |
||
795 | if (lkey[0] == " ") className.push("space"); |
||
796 | td.className = className.join(" "); |
||
797 | |||
798 | td.VKI_clickless = 0; |
||
799 | if (!td.click) { |
||
800 | td.click = function() { |
||
1220 | bpr | 801 | var evt = this.ownerDocument.createEvent('MouseEvents'); |
802 | evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); |
||
803 | this.dispatchEvent(evt); |
||
1013 | bpr | 804 | }; |
805 | } |
||
806 | td.onmouseover = function() { |
||
807 | if (self.VKI_clickless) { |
||
808 | var _self = this; |
||
809 | clearTimeout(this.VKI_clickless); |
||
3131 | bpr | 810 | this.VKI_clickless = setTimeout(function() { _self.click(); }, self.VKI_clickless); |
1013 | bpr | 811 | } |
3131 | bpr | 812 | if ((this.firstChild.nodeValue || this.firstChild.className) != "\xa0") this.className += " hover"; |
1013 | bpr | 813 | }; |
814 | td.onmouseout = function() { |
||
815 | if (self.VKI_clickless) clearTimeout(this.VKI_clickless); |
||
816 | this.className = this.className.replace(/ ?(hover|pressed)/g, ""); |
||
817 | }; |
||
818 | td.onmousedown = function() { |
||
819 | if (self.VKI_clickless) clearTimeout(this.VKI_clickless); |
||
3131 | bpr | 820 | if ((this.firstChild.nodeValue || this.firstChild.className) != "\xa0") this.className += " pressed"; |
1013 | bpr | 821 | }; |
822 | td.onmouseup = function() { |
||
823 | if (self.VKI_clickless) clearTimeout(this.VKI_clickless); |
||
824 | this.className = this.className.replace(/ ?pressed/g, ""); |
||
825 | }; |
||
826 | td.ondblclick = function() { return false; }; |
||
827 | |||
828 | switch (lkey[1]) { |
||
3131 | bpr | 829 | case "Caps": case "Shift": |
830 | case "Alt": case "AltGr": case "AltLk": |
||
1013 | bpr | 831 | td.onclick = (function(type) { return function() { self.VKI_modify(type); return false; }; })(lkey[1]); |
832 | break; |
||
833 | case "Tab": |
||
834 | td.onclick = function() { self.VKI_insert("\t"); return false; }; |
||
835 | break; |
||
836 | case "Bksp": |
||
837 | td.onclick = function() { |
||
838 | self.VKI_target.focus(); |
||
839 | if (self.VKI_target.setSelectionRange) { |
||
840 | if (self.VKI_target.readOnly && self.VKI_isWebKit) { |
||
841 | var rng = [self.VKI_target.selStart || 0, self.VKI_target.selEnd || 0]; |
||
842 | } else var rng = [self.VKI_target.selectionStart, self.VKI_target.selectionEnd]; |
||
843 | if (rng[0] < rng[1]) rng[0]++; |
||
844 | self.VKI_target.value = self.VKI_target.value.substr(0, rng[0] - 1) + self.VKI_target.value.substr(rng[1]); |
||
845 | self.VKI_target.setSelectionRange(rng[0] - 1, rng[0] - 1); |
||
846 | if (self.VKI_target.readOnly && self.VKI_isWebKit) { |
||
847 | var range = window.getSelection().getRangeAt(0); |
||
848 | self.VKI_target.selStart = range.startOffset; |
||
849 | self.VKI_target.selEnd = range.endOffset; |
||
850 | } |
||
851 | } else if (self.VKI_target.createTextRange) { |
||
1220 | bpr | 852 | try { |
1013 | bpr | 853 | self.VKI_target.range.select(); |
854 | } catch(e) { self.VKI_target.range = document.selection.createRange(); } |
||
855 | if (!self.VKI_target.range.text.length) self.VKI_target.range.moveStart('character', -1); |
||
856 | self.VKI_target.range.text = ""; |
||
857 | } else self.VKI_target.value = self.VKI_target.value.substr(0, self.VKI_target.value.length - 1); |
||
858 | if (self.VKI_shift) self.VKI_modify("Shift"); |
||
3131 | bpr | 859 | if (self.VKI_altgr) self.VKI_modify("AltGr"); |
1013 | bpr | 860 | self.VKI_target.focus(); |
861 | return true; |
||
862 | }; |
||
863 | break; |
||
864 | case "Enter": |
||
865 | td.onclick = function() { |
||
866 | if (self.VKI_target.nodeName != "TEXTAREA") { |
||
867 | self.VKI_close(); |
||
868 | this.className = this.className.replace(/ ?(hover|pressed)/g, ""); |
||
869 | } else self.VKI_insert("\n"); |
||
870 | return true; |
||
871 | }; |
||
872 | break; |
||
873 | default: |
||
874 | td.onclick = function() { |
||
3131 | bpr | 875 | var character = this.firstChild.nodeValue || this.firstChild.className; |
1013 | bpr | 876 | if (self.VKI_deadkeysOn && self.VKI_dead) { |
3131 | bpr | 877 | if (self.VKI_dead != character) { |
1013 | bpr | 878 | for (key in self.VKI_deadkey) { |
879 | if (key == self.VKI_dead) { |
||
3131 | bpr | 880 | if (character != " ") { |
1013 | bpr | 881 | for (var z = 0, rezzed = false, dk; dk = self.VKI_deadkey[key][z++];) { |
3131 | bpr | 882 | if (dk[0] == character) { |
1013 | bpr | 883 | self.VKI_insert(dk[1]); |
884 | rezzed = true; |
||
885 | break; |
||
886 | } |
||
887 | } |
||
888 | } else { |
||
889 | self.VKI_insert(self.VKI_dead); |
||
890 | rezzed = true; |
||
891 | } break; |
||
892 | } |
||
893 | } |
||
894 | } else rezzed = true; |
||
895 | } self.VKI_dead = false; |
||
896 | |||
3131 | bpr | 897 | if (!rezzed && character != "\xa0") { |
1013 | bpr | 898 | if (self.VKI_deadkeysOn) { |
899 | for (key in self.VKI_deadkey) { |
||
3131 | bpr | 900 | if (key == character) { |
1013 | bpr | 901 | self.VKI_dead = key; |
902 | this.className += " dead"; |
||
903 | if (self.VKI_shift) self.VKI_modify("Shift"); |
||
3131 | bpr | 904 | if (self.VKI_altgr) self.VKI_modify("AltGr"); |
1013 | bpr | 905 | break; |
906 | } |
||
907 | } |
||
3131 | bpr | 908 | if (!self.VKI_dead) self.VKI_insert(character); |
909 | } else self.VKI_insert(character); |
||
1013 | bpr | 910 | } |
911 | |||
912 | self.VKI_modify(""); |
||
3262 | bpr | 913 | if (self.VKI_isOpera) { |
914 | this.style.width = "50px"; |
||
915 | var foo = this.offsetWidth; |
||
916 | this.style.width = ""; |
||
917 | } |
||
1013 | bpr | 918 | return false; |
919 | }; |
||
920 | |||
921 | } |
||
922 | tr.appendChild(td); |
||
923 | tbody.appendChild(tr); |
||
924 | table.appendChild(tbody); |
||
925 | |||
926 | for (var z = 0; z < 4; z++) |
||
927 | if (this.VKI_deadkey[lkey[z] = lkey[z] || "\xa0"]) hasDeadKey = true; |
||
928 | } |
||
929 | container.appendChild(table); |
||
930 | } |
||
3131 | bpr | 931 | this.VKI_deadkeysElem.style.display = (!this.VKI_layout[this.VKI_kt].DDK && hasDeadKey) ? "inline" : "none"; |
1013 | bpr | 932 | }; |
933 | |||
934 | this.VKI_buildKeys(); |
||
935 | VKI_disableSelection(this.VKI_keyboard); |
||
936 | |||
937 | |||
938 | /* **************************************************************** |
||
939 | * Controls modifier keys |
||
940 | * |
||
941 | */ |
||
942 | this.VKI_modify = function(type) { |
||
943 | switch (type) { |
||
944 | case "Alt": |
||
3131 | bpr | 945 | case "AltGr": this.VKI_altgr = !this.VKI_altgr; break; |
946 | case "AltLk": this.VKI_altgrlock = !this.VKI_altgrlock; break; |
||
947 | case "Caps": this.VKI_shiftlock = !this.VKI_shiftlock; break; |
||
1013 | bpr | 948 | case "Shift": this.VKI_shift = !this.VKI_shift; break; |
949 | } var vchar = 0; |
||
3131 | bpr | 950 | if (!this.VKI_shift != !this.VKI_shiftlock) vchar += 1; |
951 | if (!this.VKI_altgr != !this.VKI_altgrlock) vchar += 2; |
||
1013 | bpr | 952 | |
953 | var tables = this.VKI_keyboard.getElementsByTagName('table'); |
||
954 | for (var x = 0; x < tables.length; x++) { |
||
955 | var tds = tables[x].getElementsByTagName('td'); |
||
956 | for (var y = 0; y < tds.length; y++) { |
||
3131 | bpr | 957 | var className = [], lkey = this.VKI_layout[this.VKI_kt][x][y]; |
1013 | bpr | 958 | |
959 | if (tds[y].className.indexOf('hover') > -1) className.push("hover"); |
||
960 | |||
961 | switch (lkey[1]) { |
||
962 | case "Alt": |
||
963 | case "AltGr": |
||
3131 | bpr | 964 | if (this.VKI_altgr) className.push("dead"); |
1013 | bpr | 965 | break; |
3131 | bpr | 966 | case "AltLk": |
967 | if (this.VKI_altgrlock) className.push("dead"); |
||
968 | break; |
||
1013 | bpr | 969 | case "Shift": |
970 | if (this.VKI_shift) className.push("dead"); |
||
971 | break; |
||
972 | case "Caps": |
||
3131 | bpr | 973 | if (this.VKI_shiftlock) className.push("dead"); |
1013 | bpr | 974 | break; |
975 | case "Tab": case "Enter": case "Bksp": break; |
||
976 | default: |
||
3131 | bpr | 977 | if (type) { |
978 | tds[y].removeChild(tds[y].firstChild); |
||
979 | if (this.VKI_symbol[lkey[vchar]]) { |
||
980 | var span = document.createElement('span'); |
||
981 | span.className = lkey[vchar]; |
||
982 | span.appendChild(document.createTextNode(this.VKI_symbol[lkey[vchar]])); |
||
983 | tds[y].appendChild(span); |
||
984 | } else tds[y].appendChild(document.createTextNode(lkey[vchar])); |
||
985 | } |
||
1013 | bpr | 986 | if (this.VKI_deadkeysOn) { |
3131 | bpr | 987 | var character = tds[y].firstChild.nodeValue || tds[y].firstChild.className; |
1013 | bpr | 988 | if (this.VKI_dead) { |
3131 | bpr | 989 | if (character == this.VKI_dead) className.push("dead"); |
1013 | bpr | 990 | for (var z = 0; z < this.VKI_deadkey[this.VKI_dead].length; z++) { |
3131 | bpr | 991 | if (character == this.VKI_deadkey[this.VKI_dead][z][0]) { |
1013 | bpr | 992 | className.push("target"); |
993 | break; |
||
994 | } |
||
995 | } |
||
996 | } |
||
997 | for (key in this.VKI_deadkey) |
||
3131 | bpr | 998 | if (key === character) { className.push("alive"); break; } |
1013 | bpr | 999 | } |
1000 | } |
||
1001 | |||
1002 | if (y == tds.length - 1 && tds.length > this.VKI_keyCenter) className.push("last"); |
||
1003 | if (lkey[0] == " ") className.push("space"); |
||
1004 | tds[y].className = className.join(" "); |
||
1005 | } |
||
1006 | } |
||
1007 | }; |
||
1008 | |||
1009 | |||
1010 | /* **************************************************************** |
||
1011 | * Insert text at the cursor |
||
1012 | * |
||
1013 | */ |
||
1014 | this.VKI_insert = function(text) { |
||
1015 | this.VKI_target.focus(); |
||
1220 | bpr | 1016 | if (this.VKI_target.maxLength) this.VKI_target.maxlength = this.VKI_target.maxLength; |
1017 | if (typeof this.VKI_target.maxlength == "undefined" || |
||
1018 | this.VKI_target.maxlength < 0 || |
||
1019 | this.VKI_target.value.length < this.VKI_target.maxlength) { |
||
1013 | bpr | 1020 | if (this.VKI_target.setSelectionRange) { |
1021 | if (this.VKI_target.readOnly && this.VKI_isWebKit) { |
||
1022 | var rng = [this.VKI_target.selStart || 0, this.VKI_target.selEnd || 0]; |
||
1023 | } else var rng = [this.VKI_target.selectionStart, this.VKI_target.selectionEnd]; |
||
1024 | this.VKI_target.value = this.VKI_target.value.substr(0, rng[0]) + text + this.VKI_target.value.substr(rng[1]); |
||
1025 | if (text == "\n" && window.opera) rng[0]++; |
||
1026 | this.VKI_target.setSelectionRange(rng[0] + text.length, rng[0] + text.length); |
||
1027 | if (this.VKI_target.readOnly && this.VKI_isWebKit) { |
||
1028 | var range = window.getSelection().getRangeAt(0); |
||
1029 | this.VKI_target.selStart = range.startOffset; |
||
1030 | this.VKI_target.selEnd = range.endOffset; |
||
1031 | } |
||
1032 | } else if (this.VKI_target.createTextRange) { |
||
1033 | try { |
||
1034 | this.VKI_target.range.select(); |
||
1035 | } catch(e) { this.VKI_target.range = document.selection.createRange(); } |
||
1036 | this.VKI_target.range.text = text; |
||
1037 | this.VKI_target.range.collapse(true); |
||
1038 | this.VKI_target.range.select(); |
||
1039 | } else this.VKI_target.value += text; |
||
1040 | if (this.VKI_shift) this.VKI_modify("Shift"); |
||
3131 | bpr | 1041 | if (this.VKI_altgr) this.VKI_modify("AltGr"); |
1013 | bpr | 1042 | this.VKI_target.focus(); |
1220 | bpr | 1043 | } else if (this.VKI_target.createTextRange && this.VKI_target.range) |
1044 | this.VKI_target.range.select(); |
||
1013 | bpr | 1045 | }; |
1046 | |||
1047 | |||
1048 | /* **************************************************************** |
||
1049 | * Show the keyboard interface |
||
1050 | * |
||
1051 | */ |
||
1052 | this.VKI_show = function(elem) { |
||
3262 | bpr | 1053 | if (!this.VKI_target) { |
1054 | this.VKI_target = elem; |
||
1055 | if (this.VKI_langAdapt && this.VKI_target.lang) { |
||
1056 | var chg = false, sub = []; |
||
1057 | for (ktype in this.VKI_layout) { |
||
1058 | if (typeof this.VKI_layout[ktype] == "object") { |
||
1059 | for (var x = 0; x < this.VKI_layout[ktype].lang.length; x++) { |
||
1060 | if (this.VKI_layout[ktype].lang[x].toLowerCase() == this.VKI_target.lang.toLowerCase()) { |
||
1061 | chg = kblist.value = this.VKI_kt = ktype; |
||
1062 | break; |
||
1063 | } else if (this.VKI_layout[ktype].lang[x].toLowerCase().indexOf(this.VKI_target.lang.toLowerCase()) == 0) |
||
1064 | sub.push([this.VKI_layout[ktype].lang[x], ktype]); |
||
1065 | } |
||
1066 | } if (chg) break; |
||
1067 | } if (sub.length) { |
||
1068 | sub.sort(function (a, b) { return a[0].length - b[0].length; }); |
||
1069 | chg = kblist.value = this.VKI_kt = sub[0][1]; |
||
1070 | } if (chg) this.VKI_buildKeys(); |
||
1071 | } |
||
1072 | if (this.VKI_isIE) { |
||
1073 | if (!this.VKI_target.range) { |
||
1074 | this.VKI_target.range = this.VKI_target.createTextRange(); |
||
1075 | this.VKI_target.range.moveStart('character', this.VKI_target.value.length); |
||
1076 | } this.VKI_target.range.select(); |
||
1077 | } |
||
1078 | try { this.VKI_keyboard.parentNode.removeChild(this.VKI_keyboard); } catch (e) {} |
||
1079 | if (this.VKI_clearPasswords && this.VKI_target.type == "password") this.VKI_target.value = ""; |
||
1080 | |||
1081 | var elem = this.VKI_target; |
||
1082 | this.VKI_target.keyboardPosition = "absolute"; |
||
1083 | do { |
||
1084 | if (VKI_getStyle(elem, "position") == "fixed") { |
||
1085 | this.VKI_target.keyboardPosition = "fixed"; |
||
1086 | break; |
||
1013 | bpr | 1087 | } |
3262 | bpr | 1088 | } while (elem = elem.offsetParent); |
1013 | bpr | 1089 | |
3262 | bpr | 1090 | if (this.VKI_isIE6) document.body.appendChild(this.VKI_iframe); |
1091 | document.body.appendChild(this.VKI_keyboard); |
||
1092 | this.VKI_keyboard.style.position = this.VKI_target.keyboardPosition; |
||
1013 | bpr | 1093 | |
3262 | bpr | 1094 | this.VKI_position(true); |
1095 | if (self.VKI_isMoz || self.VKI_isWebKit) this.VKI_position(true); |
||
1096 | this.VKI_target.focus(); |
||
1097 | } else this.VKI_close(); |
||
1013 | bpr | 1098 | }; |
1099 | |||
1100 | |||
1101 | /* **************************************************************** |
||
1102 | * Position the keyboard |
||
1103 | * |
||
1104 | */ |
||
3262 | bpr | 1105 | this.VKI_position = function(force) { |
1106 | if (self.VKI_target) { |
||
1107 | var kPos = VKI_findPos(self.VKI_keyboard), wDim = VKI_innerDimensions(), sDis = VKI_scrollDist(); |
||
1108 | var place = false, fudge = self.VKI_target.offsetHeight + 3; |
||
1109 | if (force !== true) { |
||
1110 | if (kPos[1] + self.VKI_keyboard.offsetHeight - sDis[1] - wDim[1] > 0) { |
||
1111 | place = true; |
||
1112 | fudge = -self.VKI_keyboard.offsetHeight - 3; |
||
1113 | } else if (kPos[1] - sDis[1] < 0) place = true; |
||
1013 | bpr | 1114 | } |
3262 | bpr | 1115 | if (place || force === true) { |
1116 | var iPos = VKI_findPos(self.VKI_target); |
||
1117 | self.VKI_keyboard.style.top = iPos[1] - ((self.VKI_target.keyboardPosition == "fixed" && !self.VKI_isIE && !self.VKI_isMoz) ? sDis[1] : 0) + fudge + "px"; |
||
1118 | self.VKI_keyboard.style.left = Math.max(10, Math.min(wDim[0] - self.VKI_keyboard.offsetWidth - 25, iPos[0])) + "px"; |
||
1119 | if (self.VKI_isIE6) { |
||
1120 | self.VKI_iframe.style.width = self.VKI_keyboard.offsetWidth + "px"; |
||
1121 | self.VKI_iframe.style.height = self.VKI_keyboard.offsetHeight + "px"; |
||
1122 | self.VKI_iframe.style.top = self.VKI_keyboard.style.top; |
||
1123 | self.VKI_iframe.style.left = self.VKI_keyboard.style.left; |
||
1124 | } |
||
1125 | } |
||
1126 | if (force === true) self.VKI_position(); |
||
1013 | bpr | 1127 | } |
1128 | }; |
||
1129 | |||
1130 | |||
1131 | if (window.addEventListener) { |
||
1220 | bpr | 1132 | window.addEventListener('resize', this.VKI_position, false); |
3262 | bpr | 1133 | window.addEventListener('scroll', this.VKI_position, false); |
1134 | } else if (window.attachEvent) { |
||
1013 | bpr | 1135 | window.attachEvent('onresize', this.VKI_position); |
3262 | bpr | 1136 | window.attachEvent('onscroll', this.VKI_position); |
1137 | } |
||
1013 | bpr | 1138 | |
1139 | |||
1140 | /* **************************************************************** |
||
1141 | * Close the keyboard interface |
||
1142 | * |
||
1143 | */ |
||
1144 | this.VKI_close = VKI_close = function() { |
||
3262 | bpr | 1145 | if (this.VKI_target) { |
1013 | bpr | 1146 | try { |
1147 | this.VKI_keyboard.parentNode.removeChild(this.VKI_keyboard); |
||
1148 | if (this.VKI_isIE6) this.VKI_iframe.parentNode.removeChild(this.VKI_iframe); |
||
1149 | } catch (e) {} |
||
3262 | bpr | 1150 | if (this.VKI_kt != this.VKI_kts) { |
1151 | kblist.value = this.VKI_kt = this.VKI_kts; |
||
1152 | this.VKI_buildKeys(); |
||
1153 | } |
||
1013 | bpr | 1154 | this.VKI_target.focus(); |
3262 | bpr | 1155 | this.VKI_target = false; |
1013 | bpr | 1156 | } |
1157 | }; |
||
3262 | bpr | 1158 | } |
1013 | bpr | 1159 | |
1160 | function VKI_findPos(obj) { |
||
1161 | var curleft = curtop = 0; |
||
1162 | do { |
||
1163 | curleft += obj.offsetLeft; |
||
1164 | curtop += obj.offsetTop; |
||
1165 | } while (obj = obj.offsetParent); |
||
1166 | return [curleft, curtop]; |
||
1167 | } |
||
1168 | |||
1169 | function VKI_innerDimensions() { |
||
1170 | if (self.innerHeight) { |
||
1171 | return [self.innerWidth, self.innerHeight]; |
||
1172 | } else if (document.documentElement && document.documentElement.clientHeight) { |
||
1173 | return [document.documentElement.clientWidth, document.documentElement.clientHeight]; |
||
1174 | } else if (document.body) |
||
1175 | return [document.body.clientWidth, document.body.clientHeight]; |
||
1176 | return [0, 0]; |
||
1177 | } |
||
1178 | |||
1179 | function VKI_scrollDist() { |
||
1180 | var html = document.getElementsByTagName('html')[0]; |
||
1181 | if (html.scrollTop && document.documentElement.scrollTop) { |
||
1182 | return [html.scrollLeft, html.scrollTop]; |
||
3262 | bpr | 1183 | } else if (html.scrollTop || document.documentElement.scrollTop) { |
1013 | bpr | 1184 | return [html.scrollLeft + document.documentElement.scrollLeft, html.scrollTop + document.documentElement.scrollTop]; |
3262 | bpr | 1185 | } else if (document.body.scrollTop) |
1186 | return [document.body.scrollLeft, document.body.scrollTop]; |
||
1013 | bpr | 1187 | return [0, 0]; |
1188 | } |
||
1189 | |||
1190 | function VKI_getStyle(obj, styleProp) { |
||
1191 | if (obj.currentStyle) { |
||
1192 | var y = obj.currentStyle[styleProp]; |
||
1193 | } else if (window.getComputedStyle) |
||
1194 | var y = window.getComputedStyle(obj, null)[styleProp]; |
||
1195 | return y; |
||
1196 | } |
||
1197 | |||
1198 | function VKI_disableSelection(elem) { |
||
1199 | elem.onselectstart = function() { return false; }; |
||
1200 | elem.unselectable = "on"; |
||
1201 | elem.style.MozUserSelect = "none"; |
||
1202 | elem.style.cursor = "default"; |
||
1203 | if (window.opera) elem.onmousedown = function() { return false; }; |
||
1204 | } |
||
1205 | |||
1206 | |||
1207 | /* ***** Attach this script to the onload event ****************** */ |
||
1208 | if (window.addEventListener) { |
||
1220 | bpr | 1209 | window.addEventListener('load', VKI_buildKeyboardInputs, false); |
1013 | bpr | 1210 | } else if (window.attachEvent) |
3131 | bpr | 1211 | window.attachEvent('onload', VKI_buildKeyboardInputs); |