Skip to content

Commit

Permalink
pbek/QOwnNotes#3038 add: check for Qt::NoModifier
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Jun 9, 2024
1 parent 1bf809f commit b631fab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qmarkdowntextedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ bool QMarkdownTextEdit::eventFilter(QObject *obj, QEvent *event) {
if ((keyEvent->key() == Qt::Key_Escape) && _searchWidget->isVisible()) {
_searchWidget->deactivate();
return true;
} else if (keyEvent->key() == Qt::Key_Insert) {
} else if (keyEvent->key() == Qt::Key_Insert &&
keyEvent->modifiers().testFlag(Qt::NoModifier)) {
setOverwriteMode(!overwriteMode());

// This solves a UI glitch if the visual cursor was not properly
Expand Down

0 comments on commit b631fab

Please sign in to comment.