Don't drop search on non-empty backspace.
This commit is contained in:
parent
88e742927f
commit
9043c18725
|
@ -3425,7 +3425,8 @@ void Widget::keyPressEvent(QKeyEvent *e) {
|
|||
//}
|
||||
} else if ((e->key() == Qt::Key_Backspace || e->key() == Qt::Key_Tab)
|
||||
&& _searchHasFocus
|
||||
&& !_searchState.inChat) {
|
||||
&& !_searchState.inChat
|
||||
&& _searchState.query.isEmpty()) {
|
||||
escape();
|
||||
} else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) {
|
||||
submit();
|
||||
|
|
Loading…
Reference in New Issue