Commit 31de3860 authored by mae's avatar mae
Browse files

Leave block selection mode

The patch makes the editor leave block selection
mode when users continue to select text with
the keyboard. The editor will smoothly convert
to standard selection mode.
parent 7df679c0
......@@ -1314,6 +1314,13 @@ void BaseTextEditor::keyPressEvent(QKeyEvent *e)
handleBlockSelection(diff_row, diff_col);
e->accept();
return;
} else {
// leave block selection mode
if (d->m_inBlockSelectionMode) {
d->m_inBlockSelectionMode = false;
d->m_blockSelection.clear();
viewport()->update();
}
}
#endif
break;
......
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