rem: var theForm = $(gQueryFormId); 
add: var theForm = $(kQueryFormId); 
context: function handleKeyPress(e) {    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 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;    }    if (debug.isEnabled()) {        var keyInfo = "win=" + gBrowserIs.win            + " x11=" + gBrowserIs.x11            + " mac=" + gBrowserIs.mac + ", "            + (metaKey ? "meta " : "")            + (ctrlKey ? "ctrl " : "") + (shiftKey ? "shift " : "")            + (altKey ? "alt " : "") + theCode;        debug.print("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 n = (theCode == 48) ? 9 : (theCode - 49);        gBuffers.activate(n);        return false;    }    // next buffer: alt-> (46)    if (46 == theCode) {        gBuffers.nextBuffer();        return false;    }    // previous buffer: alt-< (44)    if (44 == theCode) {        gBuffers.previousBuffer();        return false;    }    // toggle tab: alt-` (96)    if (96 == theCode) {        gBufferTabs.toggle();        return false;    }    // treat ctrl-shift-s (83) as session-sync    if (shiftKey && ctrlKey && theCode == 83) {        // sync the session to the database        // if sync fails, return true so that the event will bubble        return ! gSession.sync();    }    if (theCode == Event.KEY_RETURN) {        var theForm = $(gQueryFormId);        if (ctrlKey && shiftKey) {            submitText(theForm);        } else if (altKey) {            // TODO alt-enter doesn't work in IE6?            submitHTML(theForm);        } else {            submitXML(theForm);        }        return false;    }    // ignore other keys    return true;} // handleKeyPress
meta: 952	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/95f89c0957a3426915b61066d1c0793d3f8f49db/query.js/buggy/query.js