From fa77dbab28d468232fd5bbd5a3a7ff2bfcf0c366 Mon Sep 17 00:00:00 2001 From: Zira project Date: Sat, 26 Dec 2020 17:46:54 +0500 Subject: [PATCH] minor fix --- src/editor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/editor.cpp b/src/editor.cpp index cc6f1ea..70b80a4 100644 --- a/src/editor.cpp +++ b/src/editor.cpp @@ -2066,6 +2066,9 @@ bool Editor::onKeyPress(QKeyEvent *e) } // indent if (code == Qt::Key_Tab && !shift && !ctrl) { + if (search->isVisible() && static_cast(search)->isFocused()) { + return false; + } QTextCursor curs = textCursor(); if (curs.selectedText().size()==0 && tabType == "spaces") { QString insert = " ";