Merge pull request #5834 from SKefalidis/293129-selectall
fix #295156: select-all now highlights text without the need to release ctrl
This commit is contained in:
commit
b87666d764
1 changed files with 2 additions and 1 deletions
|
@ -377,7 +377,8 @@ bool TextBase::edit(EditData& ed)
|
|||
|
||||
case Qt::Key_A:
|
||||
if (ctrlPressed) {
|
||||
selectAll(_cursor);
|
||||
_cursor->movePosition(QTextCursor::Start, QTextCursor::MoveMode::MoveAnchor);
|
||||
_cursor->movePosition(QTextCursor::End, QTextCursor::MoveMode::KeepAnchor);
|
||||
s.clear();
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue