javascript - ios keyboard problems encountered when developing webapps with js
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-31 10:31:57
0
5
824

To make a webapp using js, you need to implement a search function. After entering the search content on ios, there is a completion key and an enter key. What I am monitoring now is the enter key, which means clicking the enter key on the ios keyboard. Search will be performed, but the product says that you have to click the completion button to search. How can I detect this completion button using js?

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(5)
漂亮男人

Listen to the blur event, because clicking the Complete button will blur the input box
By the way, I will add a picture upstairs, the red circle is the Complete button

迷茫

<input type="search"> Maybe this? ? ?

我想大声告诉你

Use your completion key to trigger the function of the Enter key

迷茫

Monitor keyCode

洪涛

Put it in a form and listen for the submit event.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!