I am implementing an app with a customer keyboard, The keyboard was created with all buttons where there is a button for every key, when these buttons are pressed the keyboard event is fired. The app is cross platform and with the following code I can dispatch the event on Xamarin Android from a webview on a custom renderer.
webView.DispatchKeyEvent(new KeyEvent(0, 0, KeyEventActions.Down, KeyEvent.KeyCodeFromString(digit), 0, MetaKeyStates.ShiftLeftOn | MetaKeyStates.CtrlOn));
webView.DispatchKeyEvent(new KeyEvent(0, 0, KeyEventActions.Up, KeyEvent.KeyCodeFromString(digit), 0, MetaKeyStates.ShiftLeftOn | MetaKeyStates.CtrlOn));
I need to dispatch a keyboard event for a Xamarin IOS is a similar fashion as in Android. I need to get the equivalent code in IOS to fire a keyboard event when a button is pressed.
Thanks