From 665c8a8cece544f8e90863eeef0088dddea606d2 Mon Sep 17 00:00:00 2001 From: River Marks Date: Tue, 20 Nov 2018 05:37:18 -0500 Subject: [PATCH] Fix for when attempting to input a server IP address on the num pad (#3603) The decimal key was not registering on the number pad as the decimal key, it was deleting the numbers of the IP address making it impossible to use the num pad solely for entering an IP. Fixes #3602 --- lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp b/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp index 187d01e0a..04e5d2d3c 100644 --- a/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp +++ b/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp @@ -1557,7 +1557,7 @@ EKEY_CODE CIrrDeviceLinux::getKeyCode(XEvent &event) { mp.X11Key = XkbKeycodeToKeysym(display, event.xkey.keycode, 0, 1); - if (mp.X11Key >=XK_KP_0 && mp.X11Key <= XK_KP_9) + if ((mp.X11Key >=XK_KP_0 && mp.X11Key <= XK_KP_9 ) || mp.X11Key == XK_KP_Decimal) is_numpad_key = true; }