E
E
eegmak2021-07-11 16:38:28
Android
eegmak, 2021-07-11 16:38:28

How to send enter button click to webview?

what I tried: I send js code to webview after the page is loaded,
part of the code works, and the part that sends the code of the enter (13) character does not work.
js code was tested in developer mode on mobile and desktop versions of the Mozilla browser - it works.
Question: How to send an enter press to the text field of a web page opened in webview?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2021-07-13
@402d

https://developer.android.com/guide/topics/text/cr...
In android, working with input is fundamentally different from Windows.
There is no such thing as scan codes for pressing, holding, releasing a button.
Support for physical keyboards below the plinth.
There is an input field. is the current input method.
it all works in different applications. and there is a mechanism to transfer the entered
data from one place to another.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question