2.1.3 - Backport pasting fix

Co-authored-by: Duy Tran Khanh <[email protected]>
This commit is contained in:
Eilionoir TunnicliffandDuy Tran Khanh committed 2023-01-17 09:19:13 -05:00
1 parent 9da6184250
commit 806ded7efe
1 file changed
+5
+5
View File
@@ -26,6 +26,11 @@ extern bool isUseStackQueueCall;
}
}
- (void)paste:(id)sender {
[super paste:sender];
[self sendText:UIPasteboard.generalPasteboard.string];
}
- (void)sendText:(NSString *)text {
for (int i = 0; i < text.length; i++) {
// Directly convert unichar to jchar since both are in UTF-16 encoding.