mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Just focus the search field on Space.
This commit is contained in:
@@ -3270,7 +3270,9 @@ void Widget::keyPressEvent(QKeyEvent *e) {
|
||||
// query while still show _suggestions animated, if it is a space.
|
||||
_postponeProcessSearchFocusChange = true;
|
||||
_search->setFocusFast();
|
||||
QCoreApplication::sendEvent(_search->rawTextEdit(), e);
|
||||
if (e->key() != Qt::Key_Space) {
|
||||
QCoreApplication::sendEvent(_search->rawTextEdit(), e);
|
||||
}
|
||||
_postponeProcessSearchFocusChange = false;
|
||||
processSearchFocusChange();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user