ソースを参照

Merge branch '2.x' into 2.6

Robin Herbots 12 年 前
コミット
165e5c4625
1 ファイル変更5 行追加1 行削除
  1. 5 1
      js/jquery.inputmask.js

+ 5 - 1
js/jquery.inputmask.js

@@ -1626,7 +1626,11 @@
                                 valueOnFocus = getActiveBuffer().join('');
                             } else {
                                 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()));
                             }
                         }
                     }