A_8.prototype.Sc=function(a){if(!a.isCanceled()&&this.xg(a)){var b=a.getNativeEvent(),c=AdfAgent.AGENT,d=b.keyCode,e=A_c,f=this.jd;switch(d){case AdfKeyStroke.M_KEY:b.ctrlKey&&b.altKey&&f?this.zn(b,A_b):e=A_b;break;case AdfKeyStroke.PAGEUP_KEY:case AdfKeyStroke.PAGEDOWN_KEY:d==AdfKeyStroke.PAGEUP_KEY?b.shiftKey?(d=this.q().getDomElement().offsetWidth,this.Bg({increment:-50,counter:Math.ceil(d/50)})):(d=this.getDomElement().offsetHeight,A_vj(this,A_b),this.Ok({increment:-5,counter:Math.ceil(d/5)})):
b.shiftKey?(d=this.q().getDomElement().offsetWidth,this.Bg({increment:50,counter:Math.ceil(d/50)})):(d=this.getDomElement().offsetHeight,A_vj(this,A_b),this.Ok({increment:5,counter:Math.ceil(d/5)}));e=A_a;break;case AdfKeyStroke.ARROWRIGHT_KEY:case AdfKeyStroke.ARROWLEFT_KEY:if(A_ij(this))if(e=A_Cj(this),e==A_)e=A_b;else if(d=d==AdfKeyStroke.ARROWLEFT_KEY?A_jk(this,e):A_kk(this,e),d.kL)e=A_b;else{e=A_Ej(this);f=d.P;if(f!=A_){d=d.item;if(b.shiftKey&&e)this.getComponent().getSelectedRowKeys()[f]?A_Aj(this,
f,d):A_Fj(this,f,d);else if(!b.ctrlKey||!e)A_zj(this.q()),A_Fj(this,f,d);A_Bj(this.q(),f,d,this.getComponent().getClientId())}else d.Lk&&(this.Nq=d.Lk,this.q().scrollToPos(d.Lk,A_c),e=this.Za(),e!=A_&&A_0i(e,d.Lk));e=A_a}else e=A_b;break;case AdfKeyStroke.ENTER_KEY:d=A_Cj(this);e=A_Dj(this,d);AdfAgent.AGENT.getAttribute(e,"rks")!=A_?(A_9j(this,d,e),e=A_a):e=A_b;break;default:e=A_b}e||(a.stopBubbling(),c.eatEvent(b))}};A_h("AdfDhtmlTimelineSeriesPeer.prototype.HandleComponentKeyDown",A_8.prototype.Sc);
function A_jk(a,b){for(var c=A_9(a).childNodes,d=AdfAgent.AGENT,e={},f=0;f<c.length;f++){var g=c[f],h=g.childNodes;if(h)for(var l=1;l<h.length-1;l++){var m=h[l],n=d.getAttribute(m,A_8.W);if(n!=A_){if(b==A_)return e.P=n,e.item=m,e;if(n==b){if(1<l&&(m=h[l-1],n=d.getAttribute(m,A_8.W),n!=A_))return e.P=n,e.item=m,e;if(0<=f-1)for(f-=1;0<=f;){h=c[f].childNodes;if(1<h.length&&(m=h[h.length-2],n=d.getAttribute(m,A_8.W),n!=A_))return e.P=n,e.item=m,e;f--}c=A_ik(g);c.lf!=A_&&c.Ze!=A_&&(c.KL!=A_?e.Lk=c.KL:
e.kL=A_b);return e}}}}return e}
function A_kk(a,b){for(var c=A_9(a).childNodes,d=AdfAgent.AGENT,e={},f=0;f<c.length;f++){var g=c[f],h=g.childNodes;if(h)for(var l=1;l<h.length-1;l++){var m=h[l],n=d.getAttribute(m,A_8.W);if(n!=A_){if(b==A_)return e.P=n,e.item=m,e;if(n==b){if(l+1<h.length-1)return m=h[l+1],n=d.getAttribute(m,A_8.W),e.P=n,e.item=m,e;if(f+1<c.length)for(f+=1;f<c.length;){h=c[f].childNodes;if(0<h.length){n=A_;for(l=0;l<h.length&&!(m=h[l],n=d.getAttribute(m,A_8.W),n!=A_);l++);if(n!=A_)return e.P=n,e.item=m,e}f++}c=A_ik(g);
c.lf!=A_&&c.Ze!=A_&&c.CL!=A_&&(e.Lk=c.CL);return e}}}}return e};