fireKeyPress
void
fireKeyPress(
Fires a keypress event on the element.
Implementation
void fireKeyPress(DomNode element, {String? key, int? keyCode}) {
act(() {
final options = {
'bubbles': true,
'cancelable': true,
'key': key,
'keyCode': keyCode,
};
final jsOptions = options.jsify();
final event = _createKeyboardEvent('keypress', jsOptions! as JSObject);
element.dispatchEvent(event);
});
}