@democrite
I took a closer look at the existing code and it already explicitly sets focus on BookBrowser after a single rename.
See here:
Code:
void BookBrowser::SelectRenamedResource()
{
if (m_RenamedResource == NULL) {
return;
}
// Set the selection to the resource that was being renamed
UpdateSelection(m_RenamedResource);
// Make sure Book Browser has focus so keyboard navigation works as expected
qobject_cast<QWidget *>(m_TreeView)->setFocus();
m_RenamedResource = NULL;
}
so something is stealing focus away afterwards.
I will try to track down what and see why and if it can be changed. No promises.