Browse Source
Merge pull request #9998 from mrmandrake/master
Update TextInputResponder.cs
pull/10004/head
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/iOS/Avalonia.iOS/TextInputResponder.cs
|
|
|
@ -445,7 +445,7 @@ partial class AvaloniaView |
|
|
|
|
|
|
|
UITextPosition IUITextInput.BeginningOfDocument => _beginningOfDocument; |
|
|
|
|
|
|
|
private int DocumentLength => _client.SurroundingText.Text.Length + (_markedText?.Length ?? 0); |
|
|
|
private int DocumentLength => (_client.SurroundingText.Text?.Length ?? 0) + (_markedText?.Length ?? 0); |
|
|
|
UITextPosition IUITextInput.EndOfDocument => new AvaloniaTextPosition(DocumentLength); |
|
|
|
|
|
|
|
UITextRange IUITextInput.MarkedTextRange |
|
|
|
|