Fix readSelectionFromPasteboard not actually inserting the text
This commit is contained in:
parent
01720a8d4f
commit
78d0cc40a3
1 changed files with 1 additions and 1 deletions
|
|
@ -1632,7 +1632,7 @@ - (BOOL)readSelectionFromPasteboard:(NSPasteboard *)pboard
|
|||
_glfwInputKeyboard(window, &glfw_keyevent);
|
||||
}
|
||||
debug_key("Sending text received in readSelectionFromPasteboard as key event\n");
|
||||
GLFWkeyevent glfw_keyevent = {.text=utf8};
|
||||
GLFWkeyevent glfw_keyevent = {.text=utf8, .ime_state=GLFW_IME_COMMIT_TEXT};
|
||||
_glfwInputKeyboard(window, &glfw_keyevent);
|
||||
return YES;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue