Browse Source

Merge branch '2.x' into 2.6

Robin Herbots 12 years ago
parent
commit
165e5c4625
1 changed files with 5 additions and 1 deletions
  1. 5 1
      js/jquery.inputmask.js

+ 5 - 1
js/jquery.inputmask.js

@@ -1626,7 +1626,11 @@
                                 valueOnFocus = getActiveBuffer().join('');
                                 valueOnFocus = getActiveBuffer().join('');
                             } else {
                             } else {
                                 writeBuffer(input, buffer);
                                 writeBuffer(input, buffer);
-                                caret(input, 0, getMaskLength());
+                                if (buffer.join('') == getActiveBufferTemplate().join('') && $.inArray(opts.radixPoint, buffer) != -1) {
+                                    caret(input, TranslatePosition(0));
+                                    $input.click();
+                                } else
+                                    caret(input, TranslatePosition(0), TranslatePosition(getMaskLength()));
                             }
                             }
                         }
                         }
                     }
                     }