  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; } } 
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;    }}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/c28fb69a56d9dc9af199932ceeb90e4b1324172a/handlers.js/clean/extensions/irc/xul/content/handlers.js