/* * * GrapeCity InputMan Library 1.0.0 * http://grapecity.com/ * * Copyright(c) GrapeCity, Inc. All rights reserved. * **/ var GCIM;(function(n){var r=function(){function n(n,t,i,r){this.KeyCode=n,this.ShiftKey=t,this.AltKey=r,this.CtrlKey=i,this.keyCode=n,this.shiftKey=t,this.altKey=r,this.ctrlKey=i}return n.prototype.GetAltKey=function(){return this.AltKey},n.prototype.GetCtrlKey=function(){return this.CtrlKey},n.prototype.GetKeyCode=function(){return this.KeyCode},n.prototype.GetShiftKey=function(){return this.ShiftKey},n}(),t,i;n.ShortcutKeyDownEventArgs=r,t=function(){function n(){this._all=[]}return n.prototype.GetCount=function(){return this._all.length},n.prototype.GetItem=function(n){return typeof n!="number"&&(n=this.IndexOf(n)),n<0||n>=this.GetCount()?null:this._all[n]},n.prototype.Add=function(n){if(n==null)throw"Error value for control of ShortcutActionItem";this._all.push(n)},n.prototype.Remove=function(n){this.RemoveAt(this.IndexOf(n))},n.prototype.RemoveAt=function(n){if(n<0||n>this.GetCount())return;this._all.splice(n,1)},n.prototype.IndexOf=function(n){var t,i;if(n===null)return-1;for(t=0;t=this.GetCount()?null:this._all[n]},n.prototype.Add=function(n){if(n==null)throw"Error value for control of ShortcutActionItem";this._all.push(n)},n.prototype.Remove=function(n){this.RemoveAt(this.IndexOf(n))},n.prototype.RemoveAt=function(n){if(n<0||n>this.GetCount())return;this._all.splice(n,1)},n.prototype.IndexOf=function(n){var t,i;if(n===null)return-1;for(t=0;t=this.GetCount()?null:this._all[n]},n.prototype.Add=function(n){this._all.push(n)},n.prototype.Remove=function(){this._all.pop()},n.prototype.RemoveAt=function(n){if(n<0||n>=this.GetCount())return;this._all.splice(n,1)},n.prototype.IndexOf=function(n){for(var t=0;t=this.GetCount()?null:this._all[t]},t.prototype.Add=function(n){if(n==null)throw"Error value for ShortcutKey";if(this.Contains(n))throw"[ "+n.ToString()+" ] is exist!";this._all.push(n)},t.prototype.Insert=function(n,t){if(t==null)throw"Error value for ShortcutKey";if(this.Contains(t))throw"[ "+t+" ] is exist!";this._all.splice(n,0,t)},t.prototype.Remove=function(n){if(n==null)throw"Error value for ShortcutKey";this.RemoveAt(this.IndexOf(n))},t.prototype.RemoveAt=function(n){if(n<0||n>this.GetCount())return;this._all.splice(n,1)},t.prototype.IndexOf=function(n){if(n===null)return-1;for(var t=0;t0)return!0}return!1},t.prototype.IsControlEventAttached=function(t){var r,i;if(typeof t=="string"){r=n.Utility.FindIMControl(t);if(r===null)return i=document.getElementById(t),this._attachedEventList.Contains(i)}else return this._attachedEventList.Contains(t)},t.prototype.IsActionSupported=function(t,i){var r,u;if(t===null)return!1;r=null,n.GcTextBox&&t instanceof n.GcTextBox?r=this.GetControlSupportAction("GcTextBox"):n.GcComboBox&&t instanceof n.GcComboBox?r=this.GetControlSupportAction("GcComboBox"):n.GcMask&&t instanceof n.GcMask?r=this.GetControlSupportAction("GcMask"):n.GcNumber&&t instanceof n.GcNumber?r=this.GetControlSupportAction("GcNumber"):n.GcDateTime&&t instanceof n.GcDateTime?r=this.GetControlSupportAction("GcDateTime"):n.GcCalculator&&t instanceof n.GcCalculator?r=this.GetControlSupportAction("GcCalendar"):n.GcCalendar&&t instanceof n.GcCalendar&&(r=this.GetControlSupportAction("GcCalendar"));if(r===null)return!1;for(u=0;u