rem:  if (false) { var x = 0; var y = 0; if (theCode == 37) { x = -1; } else if (theCode == 38) { y = 1; } else if (theCode == 39) { x = 1; } else {  y = -1; } resizeBuffers(x, y); if (y != 0) { resizeFrameset(); } return false; }  
context: function handleKeyPress(e) {    // handle both gecko and IE6 event models    if (document.all) {        e = window.event;    }    var theCode = e.keyCode;    // see http://www.mozilla.org/editor/key-event-spec.html    // for weird gecko behavior    // see also: http://www.brainjar.com/dhtml/events/default4.asp    if (e.charCode && e.charCode != 0) {        theCode = e.charCode;    }    //var theChar = String.fromCharCode(theCode);    var altKey = e['altKey'];    var ctrlKey = e['ctrlKey'];    var shiftKey = e['shiftKey'];    var metaKey = e['metaKey'];    // short-circuit if we obviously don't care about this keypress    if (! (ctrlKey || altKey) ) {        return true;    }    // in case we need debug info...    var keyInfo =        " win=" + is.win + " x11=" + is.x11 + " mac=" + is.mac + ", "        + (metaKey ? "meta " : "")        + (ctrlKey ? "ctrl " : "") + (shiftKey ? "shift " : "")        + (altKey ? "alt " : "") + theCode;    debug("handleKeyPress: " + keyInfo);    // handle buffers: 1 = 49, 9 = 57, 0 = 48    // ick: firefox-linux decided to use alt 0-9 for tabs    //   win32 uses ctrl, macos uses meta.    // So we accept either ctrl or alt:    // the browser will swallow anything that it doesn't want us to see.    if ( (theCode >= 48) && (theCode <= 57) ) {        // expose the corresponding buffer: 0-9        var theBuffer = (theCode == 48) ? 9 : (theCode - 49);        refreshBufferList( theBuffer, "handleKeyPress" );        return false;    }    // treat ctrl-shift-s (83) and ctrl-shift-o (79) as save, load    var theForm = document.getElementById(g_cq_query_form_id);    if (shiftKey && ctrlKey && theCode == 83) {        // save the buffers to the database        cqExport(theForm);        return false;    }    if (shiftKey && ctrlKey && theCode == 79) {        // load the buffers from the database        cqImport(theForm);        return false;    }    // enter = 13    if (theCode == 13) {        if (ctrlKey && shiftKey) {            submitText(theForm);        } else if (altKey) {            // TODO alt-enter doesn't work in IE6?            submitHTML(theForm);        } else {            submitXML(theForm);        }        return false;    }    // TODO keys for textarea resize    if (false) {        var x = 0;        var y = 0;        if (theCode == 37) {            x = -1;        } else if (theCode == 38) {            y = 1;        } else if (theCode == 39) {            x = 1;        } else {            // (theCode == 40)            y = -1;        }        resizeBuffers(x, y);        if (y != 0) {            resizeFrameset();        }        return false;    }    // ignore other keys    return true;} // handleKeyPress
meta: 952	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d78133c63c6016418ecccff62bb2c65ed609c867/cq.js/clean/cq.js