mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Allowed characters regardless of modifier keys.
This commit is contained in:
+3
-6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user