浏览代码

Fix handle delete issue.

/main
Yuncong Zhang 5 年前
当前提交
161520cc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Runtime/rendering/editable.cs

2
Runtime/rendering/editable.cs


void _handleDelete() {
var selection = this.selection;
if (selection.textAfter(this.text.text).isNotEmpty()) {
if (char.IsLowSurrogate(this.text.text[selection.end])) {
if (char.IsHighSurrogate(this.text.text[selection.end])) {
this.textSelectionDelegate.textEditingValue = new TextEditingValue(
text: selection.textBefore(this.text.text)
+ selection.textAfter(this.text.text).Substring(2),

正在加载...
取消
保存