slidecopy: when pressing RETURN on the drawer of the active panel, focus this panel
This commit is contained in:
parent
f8908f7cb3
commit
0582a26307
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue