From 2889f484f4338a61ff41f816ddfcefff43f452fa Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 30 Mar 2014 12:32:17 +0200 Subject: [PATCH] Formatting. --- src/x11_window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/x11_window.c b/src/x11_window.c index f577a511..a585dadf 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -89,10 +89,10 @@ static int translateState(int state) static int translateKey(int keycode) { // Use the pre-filled LUT (see updateKeyCodeLUT() in x11_init.c) - if ((keycode >= 0) && (keycode < 256)) - return _glfw.x11.keyCodeLUT[keycode]; + if (keycode < 0 || keycode > 255) + return GLFW_KEY_UNKNOWN; - return GLFW_KEY_UNKNOWN; + return _glfw.x11.keyCodeLUT[keycode]; } // Translates an X Window event to Unicode