diff -urp ori-sc/source/ui/navipi/scenwnd.cxx new-sc/source/ui/navipi/scenwnd.cxx --- ori-sc/source/ui/navipi/scenwnd.cxx 2008-03-12 11:33:44.000000000 +0800 +++ new-sc/source/ui/navipi/scenwnd.cxx 2008-03-12 11:37:04.000000000 +0800 @@ -284,6 +284,19 @@ long __EXPORT ScScenarioListBox::Notify( SFX_CALLMODE_SLOT | SFX_CALLMODE_RECORD, &aStringItem, 0L, 0L ); } + else if( KEY_DELETE == nCode ) + { + SfxStringItem aStringItem( SID_DELETE_SCENARIO, GetSelectEntry() ); + SfxViewFrame* pViewFrm = SfxViewFrame::Current(); + if (pViewFrm) + pViewFrm->GetDispatcher()->Execute( SID_DELETE_SCENARIO, + SFX_CALLMODE_SLOT | SFX_CALLMODE_RECORD, + &aStringItem, 0L, 0L ); + } + else if ( KEY_TAB == nCode) + { + ListBox::Notify( rNEvt ); + } } nHandled = 1; }