Hallo,
i would like to make the masked textbox a little more "usable". What I mean is this. I've seen that by default you can escape empty characters with the space bars or just clicking the cursor at the point in the mask where you want to write. Sometimes by the way, there are text (like IPs or phone numbers, or such) where the text is separated by literals and it would be great to use those literals to skip to the next box part, so much more intuitive in my opinion.
Pratical example.... for an IP mask you could have 255.255.255.255 but you could have as well 255.0.0.0 so each part, separated by the "." literal has a variable lenght.
It would be much more usable if we could skip to the next part pressing the literal "." so for example you enter 0 then press "." you are already set to the next 0.
The trick here would be to check the keypress, if it's not one of the allowed chars (this can be used both for numeric and text only masks) check for the first corresponding literal you find on the right of the cursor and move the cursor there.
So for phone number for example, here we have variable lenght so we can have +39-0737-12345678 but we can have as well +39-02-1234 so skipping with the "-" literal to the next part makes it much more usable. And this is for all variable lenght parts wich include numeric/alpha characters only.
Any hint on how to implement such functionality with JS? And do you think it would be a nice idea for a feature request? Some new option like SkipPartWithLiteral = "true" or such?
Thanks in advance
i would like to make the masked textbox a little more "usable". What I mean is this. I've seen that by default you can escape empty characters with the space bars or just clicking the cursor at the point in the mask where you want to write. Sometimes by the way, there are text (like IPs or phone numbers, or such) where the text is separated by literals and it would be great to use those literals to skip to the next box part, so much more intuitive in my opinion.
Pratical example.... for an IP mask you could have 255.255.255.255 but you could have as well 255.0.0.0 so each part, separated by the "." literal has a variable lenght.
It would be much more usable if we could skip to the next part pressing the literal "." so for example you enter 0 then press "." you are already set to the next 0.
The trick here would be to check the keypress, if it's not one of the allowed chars (this can be used both for numeric and text only masks) check for the first corresponding literal you find on the right of the cursor and move the cursor there.
So for phone number for example, here we have variable lenght so we can have +39-0737-12345678 but we can have as well +39-02-1234 so skipping with the "-" literal to the next part makes it much more usable. And this is for all variable lenght parts wich include numeric/alpha characters only.
Any hint on how to implement such functionality with JS? And do you think it would be a nice idea for a feature request? Some new option like SkipPartWithLiteral = "true" or such?
Thanks in advance