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:
parent
b6388f51fc
commit
3c376df42c
6 changed files with 22 additions and 4 deletions
|
|
@ -554,7 +554,7 @@ function Fl(a,b,c){if(b.sc<b.vg){b.ab[b.sc]=c;if(12==b.sc||13==b.sc)if(Dl(a,b)&1
|
|||
var bl={948:Y.prototype.hl,949:Y.prototype.gl,952:Y.prototype.il,954:Y.prototype.jl},cl={948:Y.prototype.zm,949:Y.prototype.ym,952:Y.prototype.Am},dl={980:Y.prototype.Mk,981:Y.prototype.Lk,984:Y.prototype.Nk,985:Y.prototype.Kk,986:Y.prototype.Ok},el={980:Y.prototype.cm,981:Y.prototype.bm,984:Y.prototype.dm,985:Y.prototype.am},fl={960:Y.prototype.Gk,961:Y.prototype.ak,962:Y.prototype.tl,964:Y.prototype.rl,965:Y.prototype.ql,974:Y.prototype.al,975:Y.prototype.$k},gl={954:Y.prototype.Ej,960:Y.prototype.Dj,
|
||||
961:Y.prototype.Dj,962:Y.prototype.Bm,964:Y.prototype.Hm,965:Y.prototype.Gm,970:Y.prototype.um,972:Y.prototype.tm,974:Y.prototype.sm,975:Y.prototype.rm,986:Y.prototype.Ej},hl={963:Y.prototype.ul,966:Y.prototype.Tk,967:Y.prototype.Uk,969:Y.prototype.Sk,970:Y.prototype.vl,972:Y.prototype.wl},il={963:Y.prototype.Jm,966:Y.prototype.im,967:Y.prototype.jm,968:Y.prototype.km,969:Y.prototype.hm};
|
||||
Ia(function(){for(var a=Za(document,"pcx86","video"),b=0;b<a.length;b++){var c=a[b],d=Wa(c),e=document.createElement("canvas");if(!e||!e.getContext){c.innerHTML="<br/>Missing <canvas> 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<=(window?window.navigator.userAgent:"").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||Aa("aspect"));f&&.3<=f&&3.33>=f&&(Ha("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");za("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"));c.appendChild(f);var g=e.getContext("2d"),d=new Y(d,e,g,f,c);Ya(d,c)}});
|
||||
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());var f=+(d.aspect||Aa("aspect"));f&&.3<=f&&3.33>=f&&(Ha("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");za("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"),f.style.fontSize="16px");c.appendChild(f);var g=e.getContext("2d"),d=new Y(d,e,g,f,c);Ya(d,c)}});
|
||||
function Hl(a){this.I=a.adapter;switch(this.I){case 1:this.G=956;this.D=7;break;case 2:this.G=888;this.D=7;break;case 3:this.G=632;this.D=5;break;default:r("Unrecognized parallel adapter #"+this.I);return}this.B=this.C=null;Ma.call(this,"ParallelPort",a,Hl);a=a.binding;"console"==a?this.C="":Xa(this,a,Il)}Pa(Hl);var Il="buffer";l=Hl.prototype;l.zb=function(a,b,c){switch(b){case Il:return this.la[b]=this.B=c,!0}return!1};
|
||||
l.pc=function(a,b,c,d){this.ia=b;this.A=c;this.Ia=d;this.S=jb(a,"ChipSet");Pb(b,this,Jl,this.G);Rb(b,this,Kl,this.G);t(this)};l.Ub=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};l.Tb=function(a){return a?this.save():!0};l.reset=function(){Ll(this)};l.save=function(){var a=new ae(this),b=0,c=[];c[b++]=this.H;c[b++]=this.Db;c[b]=this.Me;a.set(0,c);return a.data()};l.restore=function(a){return Ll(this,a[0])};
|
||||
function Ll(a,b){var c=0;b||(b=[0,0,0]);a.H=b[c++];a.Db=b[c++];a.Me=b[c];return!0}l.Vk=function(){return this.H};l.sl=function(){return this.Db};l.Rk=function(){return this.Me};l.lm=function(a,b){this.H=b;this.Db|=64;a=!1;this.B&&(8==b?this.B.value=this.B.value.slice(0,-1):(this.B.value+=String.fromCharCode(b),this.B.scrollTop=this.B.scrollHeight),a=!0);if(null!=this.C){if(10==b||1024<=this.C.length)this.rc(this.C),this.C="";10!=b&&(this.C+=String.fromCharCode(b));a=!0}a&&(this.Db&=-65);Ml(this)};
|
||||
|
|
|
|||
Loading…
Reference in a new issue