xcode - PhoneGap IOS Keyboard Done Key Event -


i'm using jquery mobile within phonegap ios app. i'm capturing ios keyboard return within search key follows.

js function blah() { if(window.event.keycode == 13   ) { } }  html <input type="search" id="searchbox" value="" onblur="dothis()" data-inline="true"    onkeypress="blah();" /> 

i capture 'done' key on keyboard well. cant seem find information on this.

thanks.

unfortunately, pressing "done" key not fire keycode event. so, can't seem find way detect either.

i think option detect "blur" event on field. if event occurs, fire whatever action need. of course, useful if have single field. if have more 1 field, using "blur" equivalent of "go" or "submit" useless.

let know if found better workaround.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -