Ignore non-printable characters

Fixes #5

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-10-18 14:40:59 +01:00
parent 7ea10c0b92
commit fe8ea81dc2
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0

View file

@ -236,7 +236,7 @@ protected:
bool onCharacterInput(const CharacterInputEvent& ev) override
{
if (ev.character == 0)
if (ev.character <= ' ' || ev.character >= kKeyDelete)
return false;
const ScopedContext sc(this);