One less line in the debug log

This commit is contained in:
Kovid Goyal 2019-05-28 20:04:21 +05:30
parent 19463c81a3
commit 73224e7d95
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -924,9 +924,8 @@ is_ascii_control_char(char x) {
}
}
if (is_ascii_control_char(_glfw.ns.text[0])) _glfw.ns.text[0] = 0; // don't send text for ascii control codes
debug_key(@"text: %s glfw_key: %s\n",
format_text(_glfw.ns.text), _glfwGetKeyName(key));
debug_key(@"marked text: %@", markedText);
debug_key(@"text: %s glfw_key: %s marked_text: %@\n",
format_text(_glfw.ns.text), _glfwGetKeyName(key), markedText);
if (!window->ns.deadKeyState) {
if ([self hasMarkedText]) {
_glfwInputKeyboard(window, key, scancode, GLFW_PRESS, mods,