Skip to content

Commit

Permalink
fix: cannot preview shortcuts in read-only mode
Browse files Browse the repository at this point in the history
Change-Id: Ibb5d0235b681a289437e379ec9d33e689ada829e
  • Loading branch information
rekols committed Oct 9, 2018
1 parent e1e573b commit 507edc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dtextedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,8 @@ void DTextEdit::keyPressEvent(QKeyEvent *keyEvent)
copyLines();
} else if (key == Utils::getKeyshortcutFromKeymap(m_settings, "editor", "togglereadonlymode")) {
toggleReadOnlyMode();
} else if (key == "Shift+/" && keyEvent->modifiers() == Qt::ControlModifier) {
keyEvent->ignore();
} else {
// If press another key
// the main window does not receive
Expand Down

0 comments on commit 507edc2

Please sign in to comment.