#include "DockView.h"
#include "GuiView.h"
+#include <QKeyEvent>
+
namespace lyx {
namespace frontend {
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);
}