'Send Keyboard Event Flutter

I am trying to find a way to send keyboard events from my flutter app to a WebView that I have open in app. For example, the WebView has some JS code with an Observer that waits for key events to happen. Any idea how could I do that?



Solution 1:[1]

You can use the KeyboardListener class and send the data on the WebView javaScriptChannels property (considering you are using webview_flutter package).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Gustavo Mauricio De Barros