sendKeyEvents method

Future<void> sendKeyEvents(
  1. SendKeyEventsParameters parameters
)

Sends the key events. This function is expected to be used by virtual keyboards. When key(s) on a virtual keyboard is pressed by a user, this function is used to propagate that event to the system. returns Called when the operation completes.

Implementation

Future<void> sendKeyEvents(SendKeyEventsParameters parameters) async {
  await promiseToFuture<void>(
      $js.chrome.input.ime.sendKeyEvents(parameters.toJS));
}