1
0
Fork 0

Fix for printable characters

This commit is contained in:
Mobile46 2022-03-12 19:20:23 +03:00 committed by GitHub
parent a6313b45f5
commit 626bbf0909
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -377,9 +377,9 @@ bool SearchListView::eventFilter(QObject* obj, QEvent* event)
}
// Printable characters go to the search box
char key = keyEvent->text().toUtf8().constData()[0];
QChar key = keyEvent->text().toUtf8().at(0);
if(isprint(key))
if(key.isPrint())
return QWidget::eventFilter(obj, event);
// By default, all other keys are forwarded to the search view