From 76e682c38a432b958025d00389226b042408ff3d Mon Sep 17 00:00:00 2001 From: Jarod42 Date: Mon, 4 Dec 2023 23:53:10 +0100 Subject: [PATCH] Fix `Key::isPrintable()` (especially enter/tabulation are not printable). --- src/key.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/key.cpp b/src/key.cpp index 2bed66a..b594335 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -89,7 +89,7 @@ namespace gcn bool Key::isPrintable() const { - return 0 < mValue && mValue < 1000; + return 32 <= mValue && mValue < 1000; } int Key::getValue() const