minor fix

This commit is contained in:
Zira project 2020-12-26 17:46:54 +05:00
parent 4104dd632f
commit fa77dbab28
1 changed files with 3 additions and 0 deletions

View File

@ -2066,6 +2066,9 @@ bool Editor::onKeyPress(QKeyEvent *e)
}
// indent
if (code == Qt::Key_Tab && !shift && !ctrl) {
if (search->isVisible() && static_cast<Search *>(search)->isFocused()) {
return false;
}
QTextCursor curs = textCursor();
if (curs.selectedText().size()==0 && tabType == "spaces") {
QString insert = " ";