This commit is contained in:
Kovid Goyal 2022-01-10 21:15:24 +05:30
parent b2bfc4408e
commit 7023c7a8ae
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1128,7 +1128,7 @@ is_ascii_control_char(char x) {
// keyboard unicode data is not available. // keyboard unicode data is not available.
if (process_text) { if (process_text) {
// this will call insertText with the text for this event, if any // this will call insertText with the text for this event, if any
[self interpretKeyEvents:[NSArray arrayWithObject:event]]; [self interpretKeyEvents:@[event]];
} }
} else { } else {
static UniChar text[256]; static UniChar text[256];
@ -1156,7 +1156,7 @@ is_ascii_control_char(char x) {
marked_text_cleared_by_insert = false; marked_text_cleared_by_insert = false;
if (process_text) { if (process_text) {
// this will call insertText which will fill up _glfw.ns.text // this will call insertText which will fill up _glfw.ns.text
[self interpretKeyEvents:[NSArray arrayWithObject:event]]; [self interpretKeyEvents:@[event]];
} else { } else {
window->ns.deadKeyState = 0; window->ns.deadKeyState = 0;
} }