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. The done key is the same as the enter key. So you can listen to a keypress event. I'm writing this using jQuery and i use it in coffee script so I'm trying to convert it back to js in my head. Sorry if there is an error. $('someElem').bind("keypress", function(e){ // enter key code is 13 if(e.which === 13){ console.log("user pressed done"); } }) I was unable to track the 'done' button being clicked. It