title: inputmask dynamic mask change on last digit
body: <p>I want to use <a href="https://github.com/RobinHerbots/jquery.inputmask" rel="nofollow" title="Original library">Jquery.Inputmask</a> to mask a phone number input and I'm dong it as follows:</p>
  
  <pre><code>@Html.TextBoxFor(m =&gt; m.PhoneNumber, new {@class = "form-control mask-phone"})
  </code></pre>
  
  <p>and in my JS I initialize it:</p>
  
  <pre><code>$(".mask-phone").inputmask({
      mask: "(99)9{4,5}-9999}",
      greedy: false
  });
  </code></pre>
  
  <p>and it works great, but the dynamic input is triggered right after the sixth digit and i have to manually put the caret after the hyphen. Is there a way to only trigger the dynamics in the mask after the very last digit has been typed? </p>
  
  <p>I'm not sure I made myself clear. I short terms, I want a mask that goes from:</p>
  
  <p><code>(99)9999-9999</code></p>
  
  <p>to:</p>
  
  <p><code>(99)99999-9999</code></p>
  
  <p>without having to drag the caret after typing the sixth digit.</p>