mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
Just focus the search field on Space.
This commit is contained in:
parent
9166a1c3a6
commit
32483fa13b
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue