search

Home  >  Q&A  >  body text

javascript - ios keyboard problems encountered when developing webapps with js

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?

曾经蜡笔没有小新曾经蜡笔没有小新2774 days ago919

reply all(5)I'll reply

  • 漂亮男人

    漂亮男人2017-05-31 10:33:57

    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

    reply
    0
  • 迷茫

    迷茫2017-05-31 10:33:57

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

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-31 10:33:57

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

    reply
    0
  • 迷茫

    迷茫2017-05-31 10:33:57

    Monitor keyCode

    reply
    0
  • PHP中文网

    PHP中文网2017-05-31 10:33:57

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

    reply
    0
  • Cancelreply