Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture "done" button click in iPhone's virtual keyboard with JavaScript

I'm wondering if there's a way to capture the iPhone's virtual keyboard's done button event, using JavaScript?

Basically, I just want to be able to call a JS function when the user clicks done.

like image 345
Dan Avatar asked Feb 11 '11 15:02

Dan


1 Answers

I was unable to track the 'done' button being clicked. It didn't register any clicks or keypresses. I had to addEventListeners for change, focusout and blur using jquery (because the project already was using jquery).

like image 139
Jason Lydon Avatar answered Oct 11 '22 20:10

Jason Lydon