add: e.preventDefault(); 
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 */            var modifier = (e.ctrlKey || e.shiftKey || e.Altkey || e.metaKey);            var idx = code - 112;            if (!modifier && (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: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/15373335eeabc4ca0d7f99ecbdd80ba38d7d5f51/handlers.js/buggy/xul/content/handlers.js