Backspace/Delete key code

I have been using the following line in the keyPressed event handler.

  
  
if( key == OF_KEY_BACKSPACE || key == OF_KEY_DEL ) {  
        cout << key;  
}  
  

Ding reported that this is not working on his powerbook and only reacts to shift-delete.

Can some of you test the following and tell me what key codes you are getting when you are pressing backspace or delete?

  
  
void testApp::keyPressed( int key ) {  
    cout << key << endl;  
}   
  

Thanks,

Hey in the version I downloaded I dont find that Maybe I’m looking in the wrong place. This is what I see

  
// Key Events  
    //  
    //      
    virtual void _keyPressed( int key ) {  
      
        if( bSetupMode ) {  
            if( bSettingsMenu ) {  
                settingsMenu.keyPressed( key );  
            }  
              
            if( key == 'c') {  
                if( bLiveVideo && vidGrabber != NULL ) {  
                    vidGrabber->videoSettings();  
                }  
            } else if( key == OF_KEY_RETURN ) {  
                bSettingsMenu = true;  
            } else if( key == ' ' ) {  
                filter->bLearnBackground = true;  
            }                        
        }  
  
        if( key == 19 ) {  // control-s  
            setSetupMode( !bSetupMode );  
        }  else if( key == 6 ) {  // control-f  
            ofToggleFullscreen();  
        }  
          
        keyPressed( key );  //call keyPressed in user app code  
    }  

ding

i’m on a MacBook. i get 127 with both delete and shift-delete. fn-delete gives me 8, though.