Commit c29ef119 authored by mae's avatar mae
Browse files

Fix Esc handling setFocusToEditor()

Switching modes was broken.
parent ef55312c
......@@ -838,7 +838,7 @@ void MainWindow::setFocusToEditor()
if (IEditor *editor = m_editorManager->currentEditor()) {
if (qApp->focusWidget() != editor->widget()) {
editor->widget()->setFocus();
focusWasMovedToEditor = true;
focusWasMovedToEditor = editor->widget()->hasFocus();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment