From da62d4f4112bef459100eafef174b6e4f322c1bf Mon Sep 17 00:00:00 2001 From: CodeST <694468528@qq.com> Date: Tue, 13 Jan 2026 17:37:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=91=E9=80=81ai=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E5=9F=8B=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CustomKeyboard/View/KBStreamTextView.m | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CustomKeyboard/View/KBStreamTextView.m b/CustomKeyboard/View/KBStreamTextView.m index 93f258e..5b82819 100644 --- a/CustomKeyboard/View/KBStreamTextView.m +++ b/CustomKeyboard/View/KBStreamTextView.m @@ -360,7 +360,6 @@ static inline NSString *KBTrimRight(NSString *s) { contextAfter = proxy.documentContextAfterInput ?: @""; } } - NSString *contextBefore = proxy.documentContextBeforeInput ?: @""; while (contextBefore.length > 0) { for (NSUInteger i = 0; i < contextBefore.length; i++) { @@ -372,6 +371,16 @@ static inline NSString *KBTrimRight(NSString *s) { if (rawText.length > 0) { [proxy insertText:rawText]; } + NSMutableDictionary *extra = [NSMutableDictionary dictionary]; + extra[@"send_text"] = rawText ? rawText : @""; + extra[@"index"] = index ? rawText : 0; + + [[KBMaiPointReporter sharedReporter] + reportClickWithEventName:@"send_stream_text_action" + pageId:@"keyboard_StreamTextView" + elementId:@"handle_label" + extra:extra.copy + completion:nil]; [[KBInputBufferManager shared] resetWithText:rawText ?: @""]; } }