Lines Matching +defs:s +defs:o
168 * pa = "shift+alt+s";
171 * hotkeys.addShortcut('ctrl+s',function() {
182 var o = {
194 o[v] = true;
198 o.charCode = v.charCodeAt(0);
199 o.keyCode = v.toUpperCase().charCodeAt(0);
203 t.shortcuts.push((o.ctrl ? 'ctrl' : '') + ',' + (o.alt ? 'alt' : '') + ',' + (o.shift ? 'shift' : '') + ',' + o.keyCode, o);
214 * Apply function cb on each element of o in the namespace of s
215 * @param o Array of objects
217 * @param s Namespace to be used during call of cb (default namespace is o)
220 this.each = function(o, cb, s) {
223 if (!o)
226 s = s || o;
228 if (o.length !== undefined) {
230 for (n=0, l = o.length; n < l; n++) {
231 if (cb.call(s, o[n], n, o) === false)
236 for (n in o) {
237 if (o.hasOwnProperty(n)) {
238 if (cb.call(s, o[n], n, o) === false)
249 * @param s String
254 this.explode = function(s, d) {
255 return s.split(d || ',');
274 t.each(t.shortcuts, function(o) {
275 if (o.ctrl != e.ctrlKey)
278 if (o.alt != e.altKey)
281 if (o.shift != e.shiftKey)
284 if (e.keyCode == o.keyCode || (e.charCode && e.charCode == o.charCode)) {
285 v = o;