I have the following page I'm displaying in WkWebView
<html>
<textarea name='message' placeholder='Type your message here'/>
</html>
And when entering text to this field, the keyboard displays a normal "Return" key.
I would like to change the label of the return key to "Send" just for this field.
Is that possible in WKWebView?
I'm aware of this answer: How to change keyboard button "Return" to "Search" for input in a UIWebView? But the proposed solution only works in UIWebView.
For someone who is still looking for the answer, we have html enterkeyhint
property nowadays: MDN.
<input id="send" enterkeyhint="send" />
<!— or —>
<textarea enterkeyhint="send"></textarea>
Most of the enterkeyhint
values (enter/done/go/next/previous/search/send) have their iOS UIReturnKeyType counterparts, and the return key changes to the corresponding appearance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With