add:   if (code != 0) return;         var regExp = /\d/; if (!regExp.test(String.fromCharCode(e.charCode))) return;     var digit1 = (e.charCode & 0xFFF0) | 1; if (!regExp.test(String.fromCharCode(digit1))) digit1 += 6;  var idx = e.charCode - digit1;  const isMac     = client.platform == "Mac"; const isLinux   = client.platform == "Linux"; const isWindows = client.platform == "Windows"; const isOS2     = client.platform == "OS/2"; const isUnknown = !(isMac || isLinux || isWindows || isOS2); const isSuite   = client.host == "Mozilla";  if ((0 <= idx) && (idx <= 8)) { if ((!isSuite && isMac && e.metaKey) || (!isSuite && (isLinux || isOS2) && e.altKey) || (!isSuite && (isWindows || isUnknown) && e.ctrlKey) || (isSuite && e.altKey)) {   if (idx == 8) idx = client.viewsArray.length - 1;  if ((idx in client.viewsArray) && client.viewsArray[idx].source) { var newView = client.viewsArray[idx].source; dispatch("set-current-view", { view: newView }); } e.preventDefault(); return; } } 
context: function onWindowKeyPress (e){    var code = Number(e.keyCode);    var w;    var newOfs;    var userList = document.getElementById("user-list");    var elemFocused = document.commandDispatcher.focusedElement;    switch (code)    {        case 9: /* tab */            if (e.ctrlKey || e.metaKey)            {                cycleView(e.shiftKey ? -1: 1);                e.preventDefault();            }            break;        case 112: /* F1 */        case 113: /* ... */        case 114:        case 115:        case 116:        case 117:        case 118:        case 119:        case 120:        case 121: /* F10 */            if (e.ctrlKey || e.shiftKey || e.Altkey || e.metaKey)                break;            var idx = code - 112;            if ((idx in client.viewsArray) && client.viewsArray[idx].source)            {                var newView = client.viewsArray[idx].source;                dispatch("set-current-view", { view: newView });            }            e.preventDefault();            break;        case 33: /* pgup */            if (e.ctrlKey)            {                cycleView(-1);                e.preventDefault();                break;            }            if (elemFocused == userList)                break;            w = client.currentFrame;            newOfs = w.pageYOffset - (w.innerHeight * 0.75);            if (newOfs > 0)                w.scrollTo (w.pageXOffset, newOfs);            else                w.scrollTo (w.pageXOffset, 0);            e.preventDefault();            break;        case 34: /* pgdn */            if (e.ctrlKey)            {                cycleView(1);                e.preventDefault();                break;            }            if (elemFocused == userList)                break;            w = client.currentFrame;            newOfs = w.pageYOffset + (w.innerHeight * 0.75);            if (newOfs < (w.innerHeight + w.pageYOffset))                w.scrollTo (w.pageXOffset, newOfs);            else                w.scrollTo (w.pageXOffset, (w.innerHeight + w.pageYOffset));            e.preventDefault();            break;    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/852bcf113a192759783f344427373aef968849f5/handlers.js/clean/extensions/irc/xul/content/handlers.js