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)
|
} else if ((e->key() == Qt::Key_Backspace || e->key() == Qt::Key_Tab)
|
||||||
&& _searchHasFocus
|
&& _searchHasFocus
|
||||||
&& !_searchState.inChat) {
|
&& !_searchState.inChat
|
||||||
|
&& _searchState.query.isEmpty()) {
|
||||||
escape();
|
escape();
|
||||||
} else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) {
|
} else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) {
|
||||||
submit();
|
submit();
|
||||||
|
|
Loading…
Reference in New Issue