Added iOS work-around for preventing unintentional page zooms when returning focus from a soft-key control to the normal keyboard control

This commit is contained in:
Jeff Parsons 2017-01-29 22:17:57 -08:00 committed by Jeff Parsons
commit 3c376df42c
6 changed files with 22 additions and 4 deletions

View file

@ -592,7 +592,7 @@ function mo(a,b,c,d,e){if(b.Ac<b.wh){e&&!z(a)||x(a,c,d,e,"CRTC."+b.qg[b.Ac]);b.m
var hn={948:Z.prototype.wm,949:Z.prototype.vm,952:Z.prototype.xm,954:Z.prototype.ym},jn={948:Z.prototype.Xn,949:Z.prototype.Wn,952:Z.prototype.Yn},kn={980:Z.prototype.am,981:Z.prototype.$l,984:Z.prototype.bm,985:Z.prototype.Zl,986:Z.prototype.cm},ln={980:Z.prototype.An,981:Z.prototype.zn,984:Z.prototype.Bn,985:Z.prototype.yn},mn={960:Z.prototype.Vl,961:Z.prototype.ml,962:Z.prototype.Im,964:Z.prototype.Gm,965:Z.prototype.Fm,974:Z.prototype.pm,975:Z.prototype.om},nn={954:Z.prototype.Mk,960:Z.prototype.Lk,
961:Z.prototype.Lk,962:Z.prototype.Zn,964:Z.prototype.fo,965:Z.prototype.eo,970:Z.prototype.Sn,972:Z.prototype.Rn,974:Z.prototype.Qn,975:Z.prototype.Pn,986:Z.prototype.Mk},on={963:Z.prototype.Jm,966:Z.prototype.hm,967:Z.prototype.im,969:Z.prototype.gm,970:Z.prototype.Km,972:Z.prototype.Lm},pn={963:Z.prototype.io,966:Z.prototype.Gn,967:Z.prototype.Hn,968:Z.prototype.In,969:Z.prototype.Fn};
Za(function(){for(var a=qb(document,"pcx86","video"),b=0;b<a.length;b++){var c=a[b],d=nb(c),e=document.createElement("canvas");if(!e||!e.getContext){c.innerHTML="<br/>Missing &lt;canvas&gt; support. Please try a newer web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=Ca().indexOf("MSIE")&&(c.onresize=function(a,b,c,d){return function(){b.style.height=
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());var f=+(d.aspect||Na("aspect"));f&&.3<=f&&3.33>=f&&(Ya("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");La("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"));c.appendChild(f);var g=e.getContext("2d"),d=new Z(d,e,g,f,c);pb(d,c)}});
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());var f=+(d.aspect||Na("aspect"));f&&.3<=f&&3.33>=f&&(Ya("onresize",function(a,b,c){return function(){b.style.height=(a.clientWidth/c|0)+"px"}}(c,e,f)),window.onresize());c.appendChild(e);f=document.createElement("textarea");La("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"),f.style.fontSize="16px");c.appendChild(f);var g=e.getContext("2d"),d=new Z(d,e,g,f,c);pb(d,c)}});
function po(a){this.V=a.adapter;switch(this.V){case 1:this.X=956;this.C=7;break;case 2:this.X=888;this.C=7;break;case 3:this.X=632;this.C=5;break;default:w("Unrecognized parallel adapter #"+this.V);return}this.A=this.B=null;db.call(this,"ParallelPort",a,po,4194304);a=a.binding;"console"==a?this.B="":ob(this,a,qo)}gb(po);var qo="buffer";l=po.prototype;l.Pb=function(a,b,c){switch(b){case qo:return this.qa[b]=this.A=c,!0}return!1};
l.Jc=function(a,b,c,d){this.ga=b;this.F=c;this.ha=d;this.N=Gb(a,"ChipSet");nc(b,this,ro,this.X);rc(b,this,so,this.X);ub(this)};l.hc=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};l.gc=function(a){return a?this.save():!0};l.reset=function(){to(this)};l.save=function(){var a=new nf(this),b=0,c=[];c[b++]=this.L;c[b++]=this.Yb;c[b]=this.Df;a.set(0,c);return a.data()};l.restore=function(a){return to(this,a[0])};
function to(a,b){var c=0;b||(b=[0,0,0]);a.L=b[c++];a.Yb=b[c++];a.Df=b[c];return!0}l.jm=function(a,b){var c=this.L;x(this,a,null,b,"DATA",c);return c};l.Hm=function(a,b){var c=this.Yb;x(this,a,null,b,"STAT",c);return c};l.fm=function(a,b){var c=this.Df;x(this,a,null,b,"CTRL",c);return c};