improve indentation
Change-Id: I1ca7f386cbd85d64e86fe293b2a4a4cbb205edef
This commit is contained in:
parent
5c3ea5d9aa
commit
e53168c687
@ -184,26 +184,26 @@ bool ODesignView::PreNotify( NotifyEvent& rNEvt )
|
|||||||
switch(rNEvt.GetType())
|
switch(rNEvt.GetType())
|
||||||
{
|
{
|
||||||
case MouseNotifyEvent::KEYINPUT:
|
case MouseNotifyEvent::KEYINPUT:
|
||||||
if ( (m_pPropWin && m_pPropWin->HasChildPathFocus()) )
|
{
|
||||||
|
if ( m_pPropWin && m_pPropWin->HasChildPathFocus() )
|
||||||
return false;
|
return false;
|
||||||
if ( (m_pAddField && m_pAddField->HasChildPathFocus()) )
|
if ( m_pAddField && m_pAddField->HasChildPathFocus() )
|
||||||
return false;
|
return false;
|
||||||
if ( (m_pReportExplorer && m_pReportExplorer->HasChildPathFocus()) )
|
if ( m_pReportExplorer && m_pReportExplorer->HasChildPathFocus() )
|
||||||
return false;
|
return false;
|
||||||
|
const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
|
||||||
|
if ( handleKeyEvent(*pKeyEvent) )
|
||||||
|
bRet = true;
|
||||||
|
else if ( bRet && m_pAccel.get() )
|
||||||
{
|
{
|
||||||
const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
|
const vcl::KeyCode& rCode = pKeyEvent->GetKeyCode();
|
||||||
if ( handleKeyEvent(*pKeyEvent) )
|
util::URL aUrl;
|
||||||
bRet = true;
|
aUrl.Complete = m_pAccel->findCommand(svt::AcceleratorExecute::st_VCLKey2AWTKey(rCode));
|
||||||
else if ( bRet && m_pAccel.get() )
|
if ( aUrl.Complete.isEmpty() || !m_xController->isCommandEnabled( aUrl.Complete ) )
|
||||||
{
|
bRet = false;
|
||||||
const vcl::KeyCode& rCode = pKeyEvent->GetKeyCode();
|
|
||||||
util::URL aUrl;
|
|
||||||
aUrl.Complete = m_pAccel->findCommand(svt::AcceleratorExecute::st_VCLKey2AWTKey(rCode));
|
|
||||||
if ( aUrl.Complete.isEmpty() || !m_xController->isCommandEnabled( aUrl.Complete ) )
|
|
||||||
bRet = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user