mirror of
https://github.com/glfw/glfw.git
synced 2025-06-14 19:52:14 +00:00
macOS: Suppress _glfwInputKey during preediting
During preediting, the following keys - arrow keys - enter key - backspace key - ... should not be passed to an application.
This commit is contained in:
parent
97f52c9cf8
commit
dcfde1a0db
@ -580,6 +580,7 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
|
||||
const int key = translateKey([event keyCode]);
|
||||
const int mods = translateFlags([event modifierFlags]);
|
||||
|
||||
if (![self hasMarkedText])
|
||||
_glfwInputKey(window, key, [event keyCode], GLFW_PRESS, mods);
|
||||
|
||||
[self interpretKeyEvents:@[event]];
|
||||
|
Loading…
Reference in New Issue
Block a user