2
0
Эх сурвалжийг харах

No characters from Ctrl and Alt chords.

This makes the behavior on X11 consistent with Win32 and Cocoa.
Camilla Berglund 12 жил өмнө
parent
commit
953b7f52e5
1 өөрчлөгдсөн 7 нэмэгдсэн , 1 устгасан
  1. 7 1
      src/x11_window.c

+ 7 - 1
src/x11_window.c

@@ -467,7 +467,13 @@ static void processEvent(XEvent *event)
         case KeyPress:
         {
             _glfwInputKey(window, translateKey(event->xkey.keycode), GLFW_PRESS);
-            _glfwInputChar(window, translateChar(&event->xkey));
+
+            if (!(event->xkey.state & ControlMask) &&
+                !(event->xkey.state & Mod1Mask /*Alt*/))
+            {
+                _glfwInputChar(window, translateChar(&event->xkey));
+            }
+
             break;
         }