SwNavigator: set entry focus and update toolbox items sensitivity
when content tree entry selection is made by the SelectContentType function The SelectContentType function is used when the Navigate By control combo box selection is changed by direct selection. This patch makes the tree entry cursor position be set to the selected content type entry so keyboard tab navigation will land on it. It also makes the move chapter up/down and promote/demote outline level toolbox items sensitivity update when the selection is made. Change-Id: I56675592678accc6db3eacb25bf9bccae8eb1cef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132689 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
This commit is contained in:
@@ -5074,9 +5074,8 @@ void SwContentTree::SelectContentType(std::u16string_view rContentTypeName)
|
||||
{
|
||||
if (m_xTreeView->get_text(*xIter) == rContentTypeName)
|
||||
{
|
||||
m_xTreeView->unselect_all();
|
||||
m_xTreeView->select(*xIter);
|
||||
m_xTreeView->scroll_to_row(*xIter);
|
||||
m_xTreeView->set_cursor(*xIter);
|
||||
Select();
|
||||
break;
|
||||
}
|
||||
} while (m_xTreeView->iter_next_sibling(*xIter));
|
||||
|
Reference in New Issue
Block a user