From 951f02acf340e8cb67e37d466b26f712e674b6fa Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Fri, 16 Aug 2013 17:48:11 +0200 Subject: [PATCH] Fixed keypad 5 release events. --- README.md | 2 ++ src/x11_init.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 711b9cda..73230463 100644 --- a/README.md +++ b/README.md @@ -229,6 +229,7 @@ See the [GLFW documentation](http://www.glfw.org/docs/latest/). the window frame on some WMs - [X11] Bugfix: The original video mode of a monitor was overwritten by calls to `glfwSetWindowSize` + - [X11] Bugfix: Key release events for `GLFW_KEY_KP_5` were discarded. ## Contact @@ -264,6 +265,7 @@ skills. - John Bartholomew - Niklas Behrens - Niklas Bergström + - Doug Binks - blanco - Lambert Clara - Noel Cower diff --git a/src/x11_init.c b/src/x11_init.c index 1c28e5f3..3d94ff5e 100644 --- a/src/x11_init.c +++ b/src/x11_init.c @@ -48,7 +48,7 @@ static int translateKey(int keyCode) // Note: This way we always force "NumLock = ON", which is intentional // since the returned key code should correspond to a physical // location. - keySym = XkbKeycodeToKeysym(_glfw.x11.display, keyCode, 1, 0); + keySym = XkbKeycodeToKeysym(_glfw.x11.display, keyCode, 0, 1); switch (keySym) { case XK_KP_0: return GLFW_KEY_KP_0;