Skip to content

Commit

Permalink
AvaloniaUI#6110 fix the issue of keyboard frezee for tizen
Browse files Browse the repository at this point in the history
  • Loading branch information
OmidID committed Jul 13, 2023
1 parent f8d80b0 commit 499836d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Tizen/Avalonia.Tizen/NuiAvaloniaViewTextEditable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ private void AttachAndShow(TextInputMethodClient client)
_updating = true;
try
{

TextInput.Text = client.SurroundingText;
TextInput.PrimaryCursorPosition = client.Selection.Start;
Window.Instance.GetDefaultLayer().Add((View)TextInput);
Expand All @@ -121,6 +120,9 @@ private void AttachAndShow(TextInputMethodClient client)
client.TextViewVisualChanged += OnTextViewVisualChanged;
client.SurroundingTextChanged += OnSurroundingTextChanged;
client.SelectionChanged += OnClientSelectionChanged;

TextInput.SelectWholeText();
OnClientSelectionChanged(this, EventArgs.Empty);
}
finally { _updating = false; }
}
Expand Down Expand Up @@ -191,6 +193,7 @@ internal interface INuiTextInput
InputMethodContext GetInputMethodContext();
void Hide();
void SelectText(int selectedTextStart, int value);
void SelectWholeText();
}

public class NuiMultiLineTextInput : TextEditor, INuiTextInput { }
Expand Down

0 comments on commit 499836d

Please sign in to comment.