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
Post a Comment