Unplanned
Last Updated: 28 Jul 2017 07:14 by ADMIN
ADMIN
Petar Mladenov
Created on: 25 Jul 2017 08:48
Category: MaskedInput
Type: Bug Report
0
MaskedInput: In TextInput, SelectAll, then holding key down + pressing space will remove the typed key
RadMaskedTextInput.

Value is 12345. Select All. Then press "A" (or random key) while down,  press space key and then release it (this happens when you type fast).

Expected: Value is "A ".

Actual Value is "  " (A is removed).


Workaround:



   public class CustomInput : RadMaskedTextInput
    {
       
        protected override void OnKeyDown(KeyEventArgs e)
        {
            if (this.Value != null && this.SelectionLength == this.Value.Length && this.SelectionLength > 0)
            {
                this.ClearCommand.Execute(null);
            }
            base.OnKeyDown(e);
        }        
    }
0 comments