Browse Source

Ignore non-printable characters

Fixes #5

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.02
falkTX 3 years ago
parent
commit
fe8ea81dc2
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/CardinalUI.cpp

+ 1
- 1
src/CardinalUI.cpp 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);


Loading…
Cancel
Save