]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/DockView.cpp
Amend 4cd568d31266
[lyx.git] / src / frontends / qt / DockView.cpp
index c485bcc56f6ae38b010bb548c60cd82fea1b3b1b..d6ba3c0ba913eb8d444a01e6ffd4115dd9609ed2 100644 (file)
@@ -31,6 +31,11 @@ DockView::DockView(GuiView & parent, QString const & name,
        hide();
        connect(&parent, SIGNAL(bufferViewChanged()),
                this, SLOT(onBufferViewChanged()));
+
+       // Make dock widgets sub windows to prevent focusNextPrevChild
+       // (Tab key) switching to the parent rather than to the next
+       // widget in the pane (#12170)
+       setWindowFlags(Qt::SubWindow);
 }