Example #1
0
        public void AddKeyBinding(KeyBinding keyBinding)
        {
            RequestManager.EnsureDirectEvent();

            this.Call("addBinding", keyBinding);
        }
 protected virtual void AfterKeyBindingAdd(KeyBinding keyBinding)
 {
     keyBinding.Owner = this;
     keyBinding.Listeners.Event.Owner = this;
 }
Example #3
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="keyBinding"></param>
        public virtual void AddKeyBinding(KeyBinding keyBinding)
        {
            RequestManager.EnsureDirectEvent();

            this.Call("addBinding", JRawValue.From(new ClientConfig().Serialize(keyBinding, true)));
        }
Example #4
0
        public void AddKeyBinding(KeyBinding keyBinding)
        {
            RequestManager.EnsureDirectEvent();

            this.Call("addBinding", new JRawValue(new ClientConfig().SerializeInternal(keyBinding, this)));
        }
Example #5
0
 public virtual Element AddKeyListener(KeyBinding key)
 {
     this.Call("addKeyListenerEx", new ClientConfig().Serialize(key));
     return this;
 }
Example #6
0
 /// <summary>
 ///
 /// </summary>
 public virtual KeyMap.Builder AddKeyBinding(KeyBinding keyBinding)
 {
     this.ToComponent().AddKeyBinding(keyBinding);
     return(this);
 }
 /// <summary>
 ///
 /// </summary>
 public KeyBinding.Builder KeyBinding(KeyBinding component)
 {
     return(new KeyBinding.Builder(component));
 }