mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: cjk input in calendar and row detail (#4726)
This commit is contained in:
parent
f5cc6521fb
commit
4ca3ba8e08
@ -268,7 +268,11 @@ class _TitleTextCellSkin extends IEditableTextCellSkin {
|
|||||||
textStyle: Theme.of(context).textTheme.bodyMedium?.copyWith(fontSize: 14),
|
textStyle: Theme.of(context).textTheme.bodyMedium?.copyWith(fontSize: 14),
|
||||||
focusNode: focusNode,
|
focusNode: focusNode,
|
||||||
hintText: LocaleKeys.calendar_defaultNewCalendarTitle.tr(),
|
hintText: LocaleKeys.calendar_defaultNewCalendarTitle.tr(),
|
||||||
onChanged: (text) => bloc.add(TextCellEvent.updateText(text)),
|
onChanged: (text) {
|
||||||
|
if (textEditingController.value.composing.isCollapsed) {
|
||||||
|
bloc.add(TextCellEvent.updateText(text));
|
||||||
|
}
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -302,7 +302,11 @@ class _TitleSkin extends IEditableTextCellSkin {
|
|||||||
isDense: true,
|
isDense: true,
|
||||||
isCollapsed: true,
|
isCollapsed: true,
|
||||||
),
|
),
|
||||||
onChanged: (text) => bloc.add(TextCellEvent.updateText(text.trim())),
|
onChanged: (text) {
|
||||||
|
if (textEditingController.value.composing.isCollapsed) {
|
||||||
|
bloc.add(TextCellEvent.updateText(text));
|
||||||
|
}
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user