0

I want to dismiss the iOS keyboard when the user hits the return key on the virtual keyboard my (HTML/CSS/JS based) website. Is this possible?

The current form looks like:

<input type="email" class="form-control" placeholder="Enter Email"
    id="email-form" autocorrect="off" autocapitalize="off">

thanks

Kenneth
  • 1,035
  • 1
  • 12
  • 26
  • possible duplicate of [iPad Safari - Make keyboard disappear](http://stackoverflow.com/questions/5937339/ipad-safari-make-keyboard-disappear) – yoeriboven Aug 08 '14 at 22:10

1 Answers1

-1

Dismiss iOS Keyboard on website

The keyboard dismissal is disabled when you present your UIWebView using a modal ViewController with presentation style UIModalPresentationFormSheet! You have to override your ViewController’s disablesAutomaticKeyboardDismissal method:

    - (BOOL)disablesAutomaticKeyboardDismissal {
return NO;

}

Community
  • 1
  • 1
Avis
  • 505
  • 4
  • 14