Lines Matching refs:keysym
41 var keysym = null;
45 case 8 : keysym = 0xFF08; break; // BACKSPACE
46 case 13 : keysym = 0xFF0D; break; // ENTER
49 case 9 : keysym = 0xFF09; break; // TAB
55 case 27 : keysym = 0xFF1B; break; // ESCAPE
56 case 46 : keysym = 0xFFFF; break; // DELETE
58 case 36 : keysym = 0xFF50; break; // HOME
59 case 35 : keysym = 0xFF57; break; // END
60 case 33 : keysym = 0xFF55; break; // PAGE_UP
61 case 34 : keysym = 0xFF56; break; // PAGE_DOWN
62 case 45 : keysym = 0xFF63; break; // INSERT
64 case 37 : keysym = 0xFF51; break; // LEFT
65 case 38 : keysym = 0xFF52; break; // UP
66 case 39 : keysym = 0xFF53; break; // RIGHT
67 case 40 : keysym = 0xFF54; break; // DOWN
68 case 16 : keysym = 0xFFE1; break; // SHIFT
69 case 17 : keysym = 0xFFE3; break; // CONTROL
71 case 18 : keysym = 0xFFE9; break; // Left ALT (Mac Command)
73 case 112 : keysym = 0xFFBE; break; // F1
74 case 113 : keysym = 0xFFBF; break; // F2
75 case 114 : keysym = 0xFFC0; break; // F3
76 case 115 : keysym = 0xFFC1; break; // F4
77 case 116 : keysym = 0xFFC2; break; // F5
78 case 117 : keysym = 0xFFC3; break; // F6
79 case 118 : keysym = 0xFFC4; break; // F7
80 case 119 : keysym = 0xFFC5; break; // F8
81 case 120 : keysym = 0xFFC6; break; // F9
82 case 121 : keysym = 0xFFC7; break; // F10
83 case 122 : keysym = 0xFFC8; break; // F11
84 case 123 : keysym = 0xFFC9; break; // F12
90 if ((!keysym) && (evt.ctrlKey || evt.altKey)) {
92 keysym = evt.which;
97 keysym = evt.keyCode;
101 switch (keysym) {
102 case 186 : keysym = 59; break; // ; (IE)
103 case 187 : keysym = 61; break; // = (IE)
104 case 188 : keysym = 44; break; // , (Mozilla, IE)
107 keysym = 45; }
109 case 189 : keysym = 45; break; // - (IE)
110 case 190 : keysym = 46; break; // . (Mozilla, IE)
111 case 191 : keysym = 47; break; // / (Mozilla, IE)
112 case 192 : keysym = 96; break; // ` (Mozilla, IE)
113 case 219 : keysym = 91; break; // [ (Mozilla, IE)
114 case 220 : keysym = 92; break; // \ (Mozilla, IE)
115 case 221 : keysym = 93; break; // ] (Mozilla, IE)
116 case 222 : keysym = 39; break; // ' (Mozilla, IE)
121 switch (keysym) {
122 case 48 : keysym = 41 ; break; // ) (shifted 0)
123 case 49 : keysym = 33 ; break; // ! (shifted 1)
124 case 50 : keysym = 64 ; break; // @ (shifted 2)
125 case 51 : keysym = 35 ; break; // # (shifted 3)
126 case 52 : keysym = 36 ; break; // $ (shifted 4)
127 case 53 : keysym = 37 ; break; // % (shifted 5)
128 case 54 : keysym = 94 ; break; // ^ (shifted 6)
129 case 55 : keysym = 38 ; break; // & (shifted 7)
130 case 56 : keysym = 42 ; break; // * (shifted 8)
131 case 57 : keysym = 40 ; break; // ( (shifted 9)
133 case 59 : keysym = 58 ; break; // : (shifted `)
134 case 61 : keysym = 43 ; break; // + (shifted ;)
135 case 44 : keysym = 60 ; break; // < (shifted ,)
136 case 45 : keysym = 95 ; break; // _ (shifted -)
137 case 46 : keysym = 62 ; break; // > (shifted .)
138 case 47 : keysym = 63 ; break; // ? (shifted /)
139 case 96 : keysym = 126; break; // ~ (shifted `)
140 case 91 : keysym = 123; break; // { (shifted [)
141 case 92 : keysym = 124; break; // | (shifted \)
142 case 93 : keysym = 125; break; // } (shifted ])
143 case 39 : keysym = 34 ; break; // " (shifted ')
145 } else if ((keysym >= 65) && (keysym <=90)) {
147 keysym += 32;
150 switch (keysym) {
151 case 96 : keysym = 48; break; // 0
152 case 97 : keysym = 49; break; // 1
153 case 98 : keysym = 50; break; // 2
154 case 99 : keysym = 51; break; // 3
155 case 100: keysym = 52; break; // 4
156 case 101: keysym = 53; break; // 5
157 case 102: keysym = 54; break; // 6
158 case 103: keysym = 55; break; // 7
159 case 104: keysym = 56; break; // 8
160 case 105: keysym = 57; break; // 9
161 case 109: keysym = 45; break; // -
162 case 110: keysym = 46; break; // .
163 case 111: keysym = 47; break; // /
168 return keysym;
173 var keysym, msg;
177 keysym = evt.which;
181 keysym = evt.keyCode;
184 if ((keysym > 255) && (keysym < 0xFF00)) {
185 msg = "Mapping character code " + keysym;
187 keysym = unicodeTable[keysym];
188 if (typeof(keysym) === 'undefined') {
189 keysym = 0;
191 Util.Debug(msg + " to " + keysym);
194 return keysym;
300 keysym = null, suppress = false;
305 keysym = getKeysymSpecial(evt);
307 fevt.keysym = keysym;
308 if (keysym) {
313 Util.Debug("onKeyPress down, keysym: " + keysym +
316 conf.onKeyPress(keysym, 1, evt);
343 kdlen = keyDownList.length, keysym = null;
358 keysym = getKeysym(evt);
364 keyDownList[kdlen-1].keysym = keysym;
372 if (conf.onKeyPress && (keysym > 0)) {
373 Util.Debug("onKeyPress down, keysym: " + keysym +
376 conf.onKeyPress(keysym, 1, evt);
388 var fevt = null, evt = (e ? e : window.event), keysym;
394 keysym = fevt.keysym;
398 keysym = 0;
403 if (conf.onKeyPress && (keysym > 0)) {
406 Util.Debug("onKeyPress up, keysym: " + keysym +
409 conf.onKeyPress(keysym, 0, evt);
420 var i, keysym, fevt = null;
423 keysym = fevt.keysym;
424 if (conf.onKeyPress && (keysym > 0)) {
425 Util.Debug("allKeysUp, keysym: " + keysym +
428 conf.onKeyPress(keysym, 0, fevt);