1
0
Fork 0

Merge pull request #2849 from mobile46/patch-1

Fix for printable characters
This commit is contained in:
Duncan Ogilvie 2022-03-24 10:46:20 +01:00 committed by GitHub
commit 78b77fa333
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