public/javascripts/yui/event/event-debug.js
function handleKeyPress(e, obj) {
        if (! keyData.shift) {  
            keyData.shift = false; 
        }
        if (! keyData.alt) {    
            keyData.alt = false;
        }
        if (! keyData.ctrl) {
            keyData.ctrl = false;
        }

        // check held down modifying keys first
        if (e.shiftKey == keyData.shift && 
            e.altKey   == keyData.alt &&
            e.ctrlKey  == keyData.ctrl) { // if we pass this, all modifiers match
            
            var dataItem, keys = keyData.keys, key;

            if (YAHOO.lang.isArray(keys)) {
                for (var i=0;i<keys.length;i++) {
                    dataItem = keys[i];
                    key = Event.getCharCode(e);

                    if (dataItem == key) {
                        keyEvent.fire(key, e);
                        break;
                    }
                }
            } else {
                key = Event.getCharCode(e);
                if (keys == key ) {
                    keyEvent.fire(key, e);
                }
            }
        }
    }
function handleKeyPress(e, obj) {
        if (! keyData.shift) {  
            keyData.shift = false; 
        }
        if (! keyData.alt) {    
            keyData.alt = false;
        }
        if (! keyData.ctrl) {
            keyData.ctrl = false;
        }

        // check held down modifying keys first
        if (e.shiftKey == keyData.shift && 
            e.altKey   == keyData.alt &&
            e.ctrlKey  == keyData.ctrl) { // if we pass this, all modifiers match
            
            var dataItem, keys = keyData.keys, key;

            if (YAHOO.lang.isArray(keys)) {
                for (var i=0;i<keys.length;i++) {
                    dataItem = keys[i];
                    key = Event.getCharCode(e);

                    if (dataItem == key) {
                        keyEvent.fire(key, e);
                        break;
                    }
                }
            } else {
                key = Event.getCharCode(e);
                if (keys == key ) {
                    keyEvent.fire(key, e);
                }
            }
        }
    }
function handleKeyPress ( e , obj ) { if ( ! keyData . shift ) { keyData . shift = false ; } if ( ! keyData . alt ) { keyData . alt = false ; } if ( ! keyData . ctrl ) { keyData . ctrl = false ; } // check held down modifying keys first if ( e . shiftKey == keyData . shift && e . altKey == keyData . alt && e . ctrlKey == keyData . ctrl ) { // if we pass this, all modifiers match var dataItem , keys = keyData . keys , key ; if ( YAHOO . lang . isArray ( keys ) ) { for ( var i = 0 ; i < keys . length ; i ++ ) { dataItem = keys [ i ] ; key = Event . getCharCode ( e ) ; if ( dataItem == key ) { keyEvent . fire ( key , e ) ; break ; } } } else { key = Event . getCharCode ( e ) ; if ( keys == key ) { keyEvent . fire ( key , e ) ; } } } }
Handles the key event when a key is pressed.
@method handleKeyPress
@param {DOMEvent} e   The keypress DOM event
@param {Object}   obj The DOM event scope object
@private
Handles the key event when a key is pressed .