From 08d1095314355ac3ba4e40485a1c7194560a5051 Mon Sep 17 00:00:00 2001 From: kimci86 Date: Tue, 15 Feb 2022 12:00:51 +0100 Subject: [PATCH] Make getKeyFromEvent more robust for Decimal (Numpad) --- src/SFML/Window/Unix/KeySymToKeyMapping.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SFML/Window/Unix/KeySymToKeyMapping.cpp b/src/SFML/Window/Unix/KeySymToKeyMapping.cpp index f9e4264e1..04143f143 100644 --- a/src/SFML/Window/Unix/KeySymToKeyMapping.cpp +++ b/src/SFML/Window/Unix/KeySymToKeyMapping.cpp @@ -75,6 +75,7 @@ Keyboard::Key keySymToKey(KeySym symbol) case XK_KP_Subtract: return Keyboard::Subtract; case XK_KP_Multiply: return Keyboard::Multiply; case XK_KP_Divide: return Keyboard::Divide; + case XK_KP_Delete: return Keyboard::Period; case XK_Pause: return Keyboard::Pause; case XK_F1: return Keyboard::F1; case XK_F2: return Keyboard::F2;