slidecopy: when pressing RETURN on the drawer of the active panel, focus this panel

This commit is contained in:
Frank Schoenheit [fs] 2010-04-19 14:39:41 +02:00
parent f8908f7cb3
commit 0582a26307

View file

@ -279,7 +279,15 @@ namespace svt
if ( bActivatePanel )
{
const size_t nPanelPos = impl_getPanelPositionFromWindow( pWindowEvent->GetWindow() );
m_rPanelDeck.ActivatePanel( nPanelPos );
if ( nPanelPos != m_rPanelDeck.GetActivePanel() )
{
m_rPanelDeck.ActivatePanel( nPanelPos );
}
else
{
PToolPanel pPanel( m_rPanelDeck.GetPanel( nPanelPos ) );
pPanel->GrabFocus();
}
return 1L;
}
return 0L;