Resolves: #i76558# jump by Enter key on the Object catalog
(cherry picked from commit 7bc75c1a7b05d81631ebccf05bf022636d1a3a14) Conflicts: basctl/source/basicide/objdlg.cxx basctl/source/basicide/objdlg.hxx Change-Id: Id3fa3686fd60df192c02cc8137c9bc59e68c1d49
This commit is contained in:
parent
ca0be67434
commit
c9f3c508bb
@ -922,6 +922,21 @@ void TreeListBox::MouseButtonDown( const MouseEvent& rMEvt )
|
|||||||
SvTreeListBox::MouseButtonDown( rMEvt );
|
SvTreeListBox::MouseButtonDown( rMEvt );
|
||||||
if ( rMEvt.IsLeft() && ( rMEvt.GetClicks() == 2 ) )
|
if ( rMEvt.IsLeft() && ( rMEvt.GetClicks() == 2 ) )
|
||||||
{
|
{
|
||||||
|
OpenCurrent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void TreeListBox::KeyInput( const KeyEvent& rEvt )
|
||||||
|
{
|
||||||
|
if ( rEvt.GetKeyCode() == KEY_RETURN && OpenCurrent() )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SvTreeListBox::KeyInput( rEvt );
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TreeListBox::OpenCurrent()
|
||||||
|
{
|
||||||
EntryDescriptor aDesc = GetEntryDescriptor(GetCurEntry());
|
EntryDescriptor aDesc = GetEntryDescriptor(GetCurEntry());
|
||||||
switch (aDesc.GetType())
|
switch (aDesc.GetType())
|
||||||
{
|
{
|
||||||
@ -939,16 +954,16 @@ void TreeListBox::MouseButtonDown( const MouseEvent& rMEvt )
|
|||||||
SID_BASICIDE_SHOWSBX,
|
SID_BASICIDE_SHOWSBX,
|
||||||
SFX_CALLMODE_SYNCHRON, &aSbxItem, 0L
|
SFX_CALLMODE_SYNCHRON, &aSbxItem, 0L
|
||||||
);
|
);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace basctl
|
} // namespace basctl
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
@ -185,7 +185,9 @@ protected:
|
|||||||
virtual void ExpandedHdl() SAL_OVERRIDE;
|
virtual void ExpandedHdl() SAL_OVERRIDE;
|
||||||
virtual SvTreeListEntry* CloneEntry( SvTreeListEntry* pSource ) SAL_OVERRIDE;
|
virtual SvTreeListEntry* CloneEntry( SvTreeListEntry* pSource ) SAL_OVERRIDE;
|
||||||
virtual bool ExpandingHdl() SAL_OVERRIDE;
|
virtual bool ExpandingHdl() SAL_OVERRIDE;
|
||||||
|
virtual void KeyInput( const KeyEvent& rEvt ) SAL_OVERRIDE;
|
||||||
|
|
||||||
|
bool OpenCurrent();
|
||||||
void ImpCreateLibEntries( SvTreeListEntry* pShellRootEntry, const ScriptDocument& rDocument, LibraryLocation eLocation );
|
void ImpCreateLibEntries( SvTreeListEntry* pShellRootEntry, const ScriptDocument& rDocument, LibraryLocation eLocation );
|
||||||
void ImpCreateLibSubEntries( SvTreeListEntry* pLibRootEntry, const ScriptDocument& rDocument, const OUString& rLibName );
|
void ImpCreateLibSubEntries( SvTreeListEntry* pLibRootEntry, const ScriptDocument& rDocument, const OUString& rLibName );
|
||||||
void ImpCreateLibSubEntriesInVBAMode( SvTreeListEntry* pLibRootEntry, const ScriptDocument& rDocument, const OUString& rLibName );
|
void ImpCreateLibSubEntriesInVBAMode( SvTreeListEntry* pLibRootEntry, const ScriptDocument& rDocument, const OUString& rLibName );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user