fix: Input limited the number of words when entering Chinese bug.

This commit is contained in:
吴尚昆
2022-07-07 12:12:06 +08:00
committed by osborn
parent 35c6d03d14
commit d412d456bb
2 changed files with 15 additions and 4 deletions

View File

@@ -38,6 +38,10 @@ function getInput(c: Partial<Input>) {
inputView.onSubmitEditing = (text) => {
inputed.text = `Submited: ${text}`
};
inputView.beforeTextChange = (change) => {
log(`beforeTextChange ${JSON.stringify(change)}`);
return true;
};