Allowed characters regardless of modifier keys.

This commit is contained in:
Camilla Berglund
2013-08-19 13:08:35 +02:00
parent 951f02acf3
commit 9c20737b60
4 changed files with 5 additions and 9 deletions
+3 -6
View File
@@ -513,15 +513,12 @@ static void processEvent(XEvent *event)
{
const int key = translateKey(event->xkey.keycode);
const int mods = translateState(event->xkey.state);
const int character = translateChar(&event->xkey);
_glfwInputKey(window, key, event->xkey.keycode, GLFW_PRESS, mods);
if (!(mods & GLFW_MOD_CONTROL) && !(mods & GLFW_MOD_ALT))
{
const int character = translateChar(&event->xkey);
if (character != -1)
_glfwInputChar(window, character);
}
if (character != -1)
_glfwInputChar(window, character);
break;
}