3

I'm working on a jQuery mobile site and need to update my layout when the iOS keyboard is showing up or hiding.

Is there some event I can bind to? Doesn't necessarily have to be a JQM event, any other would also suffice.

Thanks for help!

Alex Coplan
  • 13,211
  • 19
  • 77
  • 138
frequent
  • 27,643
  • 59
  • 181
  • 333
  • It would be similar as other form elements have like blur and focus events... – copenndthagen Dec 22 '11 at 17:36
  • Sounds to me that attaching the `resize` event would do, you can check innerWidth/innerHeight and change layout. Though I just read that Safari changes the innerHeight value without triggering `resize`. How odd. – oriadam Aug 04 '16 at 13:26

1 Answers1

0

jQuery Mobile does not offer an event for when the iOS keyboard is opened. You can bind the focus and onblur events to handle this instead.

Kyle Pollard
  • 2,204
  • 1
  • 13
  • 27