Commit cf30a7f7 authored by Alexander Lohnau's avatar Alexander Lohnau 💬

Fix unprintable characters

parent 83de1e62
......@@ -249,7 +249,12 @@ FocusScope {
} else if (event.key === Qt.Key_Tab) {
//do nothing, and skip appending text
} else if (event.text !== "") {
appendSearchText(event.text);
if (/[\x00-\x1F\x7F]/.test(event.text)) {
// We still want to focus it
appendSearchText("");
} else {
appendSearchText(event.text);
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment