I suggest you ...

maskedtextbox

When you set focus on a masked text box that has an existing value, the cursor position is reset to the beginning of the input - even if there is no mask.

I propose:

If there is no mask (i.e so its acting as free text) - don't reset the cursor position on focus, instead, behave like an ordinary input box.

3 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Darrell Tunnell shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Darrell Tunnell commented  ·   ·  Flag as inappropriate

        For example, clicking on a masked textbox in chrome, to set the cursor here like this:

        FOOB|AR

        The widget actually sets the cursor position to this:

        |FOOBAR

        I am not entirely sure why it tries to reset the position, but I am assuming it is for masks that want input in a given an order from start to finish? Perhaps someone can explain to me the value of resetting the cursor position to the start?

        However if there is no mask, this behaviour seems confusing, so thats where I propose we don't reset the cursor position.

      Feedback and Knowledge Base