Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

iOS Keyboard Done Button

Discussion in 'UGUI & TextMesh Pro' started by kubasteve, Aug 13, 2015.

  1. kubasteve

    kubasteve

    Joined:
    Jun 18, 2013
    Posts:
    13
    Hello,

    I was under the impression that when the user click the done keyboard button that it would fire the OnSubmit event. When testing on device I am not receiving this event. In my project I have a few InputFields and I would like to know when the user clicks the done button so that I can deactivate the current InputField and activate the next one. Any ideas of what to do ?

    Thanks
     
  2. MikePanoff

    MikePanoff

    Joined:
    Apr 29, 2015
    Posts:
    20
    You are right , the iOS keyboard "Done" button won't force OnSubmit(). I believe that is a bug.

    It will call the InputField's "End Edit" event though. So you can create a function called OnEndEdit() and from the Input Field inspector, have it call that function.
     
    mahmoud93p likes this.