Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit a35777b

Browse files
author
Yuncong Zhang
committed
Fix handle delete issue.
1 parent 1651ae6 commit a35777b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/rendering/editable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ void _handleShortcuts(KeyCommand cmd) {
501501
void _handleDelete() {
502502
var selection = this.selection;
503503
if (selection.textAfter(this.text.text).isNotEmpty()) {
504-
if (char.IsLowSurrogate(this.text.text[selection.end])) {
504+
if (char.IsHighSurrogate(this.text.text[selection.end])) {
505505
this.textSelectionDelegate.textEditingValue = new TextEditingValue(
506506
text: selection.textBefore(this.text.text)
507507
+ selection.textAfter(this.text.text).Substring(2),

0 commit comments

Comments
 (0)