Now I have a solution how I can work around this. If I place IME.ShowKeyboard(txtChange) and IME.HideKeyboard first in the B4XTable_CellLongClicked (ColumnId As String, RowId As Long) and then a new IME.ShowKeyboard(txtChange) in the If Result = xui.DialogResponse_Positive part then it works. Thank you for your time.
The MaskedEditText is on panel pnlChange, the code is in B4XTable_CellLongClicked (ColumnId As String, RowId As Long) after a xui.Msgbox2Async question on xui.DialogResponse_Positive response. Sleep(0) did not help.
I have make some investigations, if a move the code somewhere before Wait For (sf) Msgbox_Result (Result As Int) then it works. But I want it in the If Result = xui.DialogResponse_Positive.
Now I have a solution how I can work around this. If I place IME.ShowKeyboard(txtChange) and IME.HideKeyboard first in the B4XTable_CellLongClicked (ColumnId As String, RowId As Long) and then a new IME.ShowKeyboard(txtChange) in the If Result = xui.DialogResponse_Positive part then it works. Thank you for your time.