mirror of
https://github.com/glfw/glfw.git
synced 2024-11-27 04:22:00 +00:00
No characters from Ctrl and Alt chords.
This makes the behavior on X11 consistent with Win32 and Cocoa.
This commit is contained in:
parent
810d889539
commit
953b7f52e5
@ -467,7 +467,13 @@ static void processEvent(XEvent *event)
|
|||||||
case KeyPress:
|
case KeyPress:
|
||||||
{
|
{
|
||||||
_glfwInputKey(window, translateKey(event->xkey.keycode), GLFW_PRESS);
|
_glfwInputKey(window, translateKey(event->xkey.keycode), GLFW_PRESS);
|
||||||
|
|
||||||
|
if (!(event->xkey.state & ControlMask) &&
|
||||||
|
!(event->xkey.state & Mod1Mask /*Alt*/))
|
||||||
|
{
|
||||||
_glfwInputChar(window, translateChar(&event->xkey));
|
_glfwInputChar(window, translateChar(&event->xkey));
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user