diff --git a/src/plugins/qmldesigner/components/texteditor/texteditorwidget.cpp b/src/plugins/qmldesigner/components/texteditor/texteditorwidget.cpp index 2d3e1a5a820..b7f20e77a2f 100644 --- a/src/plugins/qmldesigner/components/texteditor/texteditorwidget.cpp +++ b/src/plugins/qmldesigner/components/texteditor/texteditorwidget.cpp @@ -116,6 +116,12 @@ void TextEditorWidget::jumpTextCursorToSelectedModelNode() { ModelNode selectedNode; + if (hasFocus()) + return; + + if (m_textEditor && m_textEditor->editorWidget()->hasFocus()) + return; + if (!m_textEditorView->selectedModelNodes().isEmpty()) selectedNode = m_textEditorView->selectedModelNodes().first();