Char callback got lost for some reason

This commit is contained in:
Daniel Collin 2016-05-27 18:15:58 +02:00
parent b5f3cf1ca3
commit 596c5a7097

View file

@ -70,6 +70,14 @@
key_callback(rust_data, [event keyCode], 1);
}
if (char_callback) {
NSString* characters = [event characters];
NSUInteger i, length = [characters length];
for (i = 0; i < length; i++)
char_callback(rust_data, [characters characterAtIndex:i]);
}
[super keyDown:event];
}