Focusable = true,
};
NUIApplication.GetDefaultWindow().GetDefaultLayer().Add(editor);
+ FocusManager.Instance.SetCurrentFocusView(editor);
var inputMethodContext = editor.GetInputMethodContext();
await Task.Delay(500);
if (inputMethodContext)
tlog.Debug(TAG, $"EventReceived_EVENT, OnEventReceived added, State={inputMethodContext.GetInputPanelState()}");
inputMethodContext.Activate();
inputMethodContext.ShowInputPanel();
+ editor.Text = "text"; // EventReceived event emits when the text is preedit or commit while focusing.
await Task.Delay(500);
tlog.Debug(TAG, $"EventReceived_EVENT, ShowInputPanel() 500ms delay, State={inputMethodContext.GetInputPanelState()}");
inputMethodContext.HideInputPanel();
{
tlog.Debug(TAG, $"EventReceived_EVENT, error : inputMethodContext is null !");
}
+ FocusManager.Instance.ClearFocus();
editor.Unparent();
editor.Dispose();
editor = null;
Focusable = true,
};
NUIApplication.GetDefaultWindow().GetDefaultLayer().Add(editor);
+ FocusManager.Instance.SetCurrentFocusView(editor);
var inputMethodContext = editor.GetInputMethodContext();
await Task.Delay(500);
if (inputMethodContext)
{
tlog.Debug(TAG, $"StatusChanged_EVENT, error : inputMethodContext is null !");
}
+ FocusManager.Instance.ClearFocus();
editor.Unparent();
editor.Dispose();
editor = null;
Focusable = true,
};
NUIApplication.GetDefaultWindow().GetDefaultLayer().Add(editor);
+ FocusManager.Instance.SetCurrentFocusView(editor);
var inputMethodContext = editor.GetInputMethodContext();
await Task.Delay(500);
if (inputMethodContext)
{
tlog.Debug(TAG, $"Resized_EVENT, error : inputMethodContext is null !");
}
+ FocusManager.Instance.ClearFocus();
editor.Unparent();
editor.Dispose();
editor = null;