|
@@ -3,7 +3,7 @@
|
|
|
* http://github.com/RobinHerbots/jquery.inputmask
|
|
* http://github.com/RobinHerbots/jquery.inputmask
|
|
|
* Copyright (c) 2010 - 2013 Robin Herbots
|
|
* Copyright (c) 2010 - 2013 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 2.1.17
|
|
|
|
|
|
|
+* Version: 2.1.18
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
(function ($) {
|
|
(function ($) {
|
|
@@ -683,7 +683,7 @@
|
|
|
return { "begin": 0, "end": 0 };
|
|
return { "begin": 0, "end": 0 };
|
|
|
}
|
|
}
|
|
|
if (npt.setSelectionRange) {
|
|
if (npt.setSelectionRange) {
|
|
|
- begin = android533 ? npt.selectionEnd : npt.selectionStart;
|
|
|
|
|
|
|
+ begin = npt.selectionStart;
|
|
|
end = npt.selectionEnd;
|
|
end = npt.selectionEnd;
|
|
|
} else if (document.selection && document.selection.createRange) {
|
|
} else if (document.selection && document.selection.createRange) {
|
|
|
range = document.selection.createRange();
|
|
range = document.selection.createRange();
|
|
@@ -1063,7 +1063,7 @@
|
|
|
determineActiveMasksetIndex(buffer, pos.begin, activeMasksetIndex);
|
|
determineActiveMasksetIndex(buffer, pos.begin, activeMasksetIndex);
|
|
|
writeBuffer(input, buffer, isRTL ? checkVal(input, buffer, false) : pos.begin);
|
|
writeBuffer(input, buffer, isRTL ? checkVal(input, buffer, false) : pos.begin);
|
|
|
} else { //handle delete
|
|
} else { //handle delete
|
|
|
- var beginPos = pos.begin;
|
|
|
|
|
|
|
+ var beginPos = android533 ? pos.end : pos.begin;
|
|
|
if (k == opts.keyCode.DELETE) {
|
|
if (k == opts.keyCode.DELETE) {
|
|
|
if (beginPos < firstMaskPos)
|
|
if (beginPos < firstMaskPos)
|
|
|
beginPos = firstMaskPos;
|
|
beginPos = firstMaskPos;
|
|
@@ -1111,7 +1111,7 @@
|
|
|
if (!opts.insertMode && caretPos == getMaskLength(buffer) && !e.shiftKey) caretPos--;
|
|
if (!opts.insertMode && caretPos == getMaskLength(buffer) && !e.shiftKey) caretPos--;
|
|
|
caret(input, e.shiftKey ? pos.begin : caretPos, caretPos);
|
|
caret(input, e.shiftKey ? pos.begin : caretPos, caretPos);
|
|
|
}, 0);
|
|
}, 0);
|
|
|
- } else if (k == opts.keyCode.HOME || k == opts.keyCode.PAGE_UP) {//Home or page_up
|
|
|
|
|
|
|
+ } else if ((k == opts.keyCode.HOME && !e.shiftKey) || k == opts.keyCode.PAGE_UP) {//Home or page_up
|
|
|
caret(input, 0, e.shiftKey ? pos.begin : 0);
|
|
caret(input, 0, e.shiftKey ? pos.begin : 0);
|
|
|
}
|
|
}
|
|
|
else if (k == opts.keyCode.ESCAPE) {//escape
|
|
else if (k == opts.keyCode.ESCAPE) {//escape
|
|
@@ -1268,7 +1268,7 @@ Input Mask plugin extensions
|
|
|
http://github.com/RobinHerbots/jquery.inputmask
|
|
http://github.com/RobinHerbots/jquery.inputmask
|
|
|
Copyright (c) 2010 - 2013 Robin Herbots
|
|
Copyright (c) 2010 - 2013 Robin Herbots
|
|
|
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-Version: 2.1.17
|
|
|
|
|
|
|
+Version: 2.1.18
|
|
|
|
|
|
|
|
Optional extensions on the jquery.inputmask base
|
|
Optional extensions on the jquery.inputmask base
|
|
|
*/
|
|
*/
|
|
@@ -1365,7 +1365,7 @@ Input Mask plugin extensions
|
|
|
http://github.com/RobinHerbots/jquery.inputmask
|
|
http://github.com/RobinHerbots/jquery.inputmask
|
|
|
Copyright (c) 2010 - 2012 Robin Herbots
|
|
Copyright (c) 2010 - 2012 Robin Herbots
|
|
|
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-Version: 2.1.17
|
|
|
|
|
|
|
+Version: 2.1.18
|
|
|
|
|
|
|
|
Optional extensions on the jquery.inputmask base
|
|
Optional extensions on the jquery.inputmask base
|
|
|
*/
|
|
*/
|
|
@@ -1858,7 +1858,7 @@ Input Mask plugin extensions
|
|
|
http://github.com/RobinHerbots/jquery.inputmask
|
|
http://github.com/RobinHerbots/jquery.inputmask
|
|
|
Copyright (c) 2010 - 2013 Robin Herbots
|
|
Copyright (c) 2010 - 2013 Robin Herbots
|
|
|
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-Version: 2.1.17
|
|
|
|
|
|
|
+Version: 2.1.18
|
|
|
|
|
|
|
|
Optional extensions on the jquery.inputmask base
|
|
Optional extensions on the jquery.inputmask base
|
|
|
*/
|
|
*/
|