From 8d2220f42893d7297098c1cd8677d0dc8c65ea7e Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 16 Dec 2021 00:34:05 -0500
Subject: [PATCH] X11_KeyToUnicode: No need to tapdance for numbers, they match
ASCII values.
Reference issue #153.
---
src/SDL12_compat.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 83cd40b..6647bc7 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -8108,8 +8108,6 @@ X11_KeyToUnicode(SDL12Key key, SDL12Mod mod)
{
if (((int) key) >= 127) {
return 0;
- } else if ((key >= SDLK12_0) && (key <= SDLK12_9)) {
- return (Uint16) ('0' + (key - SDLK12_0));
} else if ((key >= SDLK12_a) && (key <= SDLK12_z)) {
const int shifted = ((mod & (KMOD12_LSHIFT|KMOD12_RSHIFT)) != 0) ? 1 : 0;
int capital = ((mod & KMOD12_CAPS) != 0) ? 1 : 0;