Synthesize ASCII escape codes for ctrl+alt+CHAR inputs too (#76)

This commit is contained in:
Raven Szewczyk authored and GitHub committed 2023-09-23 11:21:17 +01:00
1 parent be28e276b8
commit f06ec1ec18
1 file changed
+1 -1
+1 -1
View File
@@ -179,7 +179,7 @@ public class Display {
// MacOS doesn't send a char event for Cmd+KEY presses, but other platforms do.
cancelNextChar = true;
}
} else if ((GLFW_MOD_CONTROL & mods) != 0 && (GLFW_MOD_ALT & mods) == 0) { // Handle ctrl + x/c/v.
} else if ((GLFW_MOD_CONTROL & mods) != 0) { // Handle ctrl + x/c/v.
Keyboard.addGlfwKeyEvent(window, key, scancode, action, mods, (char) (key & 0x1f));
cancelNextChar = true; // Cancel char event from ctrl key since its already handled here
} else if (action > 0) { // Delay press and repeat key event to actual char input. There is ALWAYS a