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

Commit 4d2118e

Browse files
authored
Merge pull request #224 from UnityTech/focus
make selectWord & selectWordEdge public
2 parents d1f7040 + 1016499 commit 4d2118e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/rendering/editable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ void selectPosition(SelectionChangedCause? cause = null) {
10061006
this.selectPositionAt(from: this._lastTapDownPosition, cause: cause);
10071007
}
10081008

1009-
void selectWord(SelectionChangedCause? cause = null) {
1009+
public void selectWord(SelectionChangedCause? cause = null) {
10101010
this.selectWordsInRange(from: this._lastTapDownPosition, cause: cause);
10111011
}
10121012

@@ -1033,7 +1033,7 @@ void selectWordsInRange(Offset from = null, Offset to = null, SelectionChangedCa
10331033
}
10341034
}
10351035

1036-
void selectWordEdge(SelectionChangedCause cause) {
1036+
public void selectWordEdge(SelectionChangedCause cause) {
10371037
this._layoutText(this.constraints.maxWidth);
10381038
D.assert(this._lastTapDownPosition != null);
10391039
if (this.onSelectionChanged != null) {

0 commit comments

Comments
 (0)