forked from qt-creator/qt-creator
LanguageClient: fix outline focus
Setting a focus proxy to the outline widget makes sure the tree view gets the focus whenever the oultine widget gets focus, so after opening the outline the user can directly use navigation keys to move the selection in the outline. Fixes: QTCREATORBUG-27595 Change-Id: I0771c99ccf5aa334f45065d58366b53f53bf75a5 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -255,6 +255,7 @@ LanguageClientOutlineWidget::LanguageClientOutlineWidget(Client *client,
|
||||
if (m_sync)
|
||||
updateSelectionInTree(m_editor->textCursor());
|
||||
});
|
||||
setFocusProxy(&m_view);
|
||||
}
|
||||
|
||||
QList<QAction *> LanguageClientOutlineWidget::filterMenuActions() const
|
||||
|
Reference in New Issue
Block a user