mirror of
https://github.com/GTNewHorizons/lwjgl3ify.git
synced 2026-11-22 13:10:15 +00:00
Synthesize ASCII escape codes for ctrl+alt+CHAR inputs too (#76)
This commit is contained in:
1 parent
be28e276b8
commit
f06ec1ec18
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user