【发布时间】:2019-08-22 09:27:06
【问题描述】:
我已经使用自定义键盘实现了跨平台应用程序,我需要为 xamarin IOS 调度键盘事件,下面的代码我可以在 xamarin Android 上调度事件。
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));
我需要获得 xamarin iOS 的等价物。如果您知道,请告诉我。
【问题讨论】:
标签: c# xamarin xamarin.forms xamarin.android xamarin.ios