Hi Alon,
Thanks for using Syncfusion product.
You can achieve your requirement by using the platform specific keyboard using DependencyService in AcceptButtonCommand. Please find the following code snippet for your reference.
PCL:
public interface IKeyBoard
{
void HideKeyboard();
}
|
Android:
internal class CustomKeyBoardAndroid : PopupSample.IKeyBoard
{
public void HideKeyboard()
{
var context = Forms.Context;
var inputMethodManager = context.GetSystemService(Context.InputMethodService) as InputMethodManager;
if (inputMethodManager != null && context is Activity)
{
var activity = context as Activity;
var token = activity.CurrentFocus?.WindowToken;
inputMethodManager.HideSoftInputFromWindow(token, HideSoftInputFlags.None);
activity.Window.DecorView.ClearFocus();
}
}
}
|
iOS:
internal class CustomKeyBoardiOS : PopupSample.IKeyBoard
{
public void HideKeyboard()
{
UIApplication.SharedApplication.KeyWindow.EndEditing(true);
}
}
|
We have prepared sample and you can download from the following link,
Let us know whether this helps also if you need any further assistance on this.
Regards,
Jagadeesan