修改键盘长按立即清空和撤销删除
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
#import "KBStreamTextView.h"
|
||||
#import "KBResponderUtils.h" // 通过响应链找到 UIInputViewController,并将文本输出到宿主
|
||||
#import "KBInputBufferManager.h"
|
||||
|
||||
@interface KBStreamTextView ()
|
||||
|
||||
@@ -371,6 +372,7 @@ static inline NSString *KBTrimRight(NSString *s) {
|
||||
if (rawText.length > 0) {
|
||||
[proxy insertText:rawText];
|
||||
}
|
||||
[[KBInputBufferManager shared] resetWithText:rawText ?: @""];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user