|
@@ -866,17 +866,18 @@
|
|
|
}
|
|
}
|
|
|
function compositionUpdateEvent(e) {
|
|
function compositionUpdateEvent(e) {
|
|
|
var input = this, caretPos = compositionCaretPos;
|
|
var input = this, caretPos = compositionCaretPos;
|
|
|
- getMaskSet().validPositions = $.extend(!0, {}, compositionValidPos), setTimeout(function() {
|
|
|
|
|
- var newData = e.originalEvent.data;
|
|
|
|
|
- caret(input, caretPos.begin, caretPos.end);
|
|
|
|
|
- for (var i = 0; i < newData.length; i++) {
|
|
|
|
|
- var keypress = $.Event("keypress");
|
|
|
|
|
- keypress.which = newData.charCodeAt(i), skipKeyPressEvent = !1, ignorable = !1,
|
|
|
|
|
- keypressEvent.call(input, keypress);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ getMaskSet().validPositions = $.extend(!0, {}, compositionValidPos);
|
|
|
|
|
+ var newData = e.originalEvent.data;
|
|
|
|
|
+ caret(input, caretPos.begin, caretPos.end);
|
|
|
|
|
+ for (var i = 0; i < newData.length; i++) {
|
|
|
|
|
+ var keypress = $.Event("keypress");
|
|
|
|
|
+ keypress.which = newData.charCodeAt(i), skipKeyPressEvent = !1, ignorable = !1,
|
|
|
|
|
+ keypressEvent.call(input, keypress);
|
|
|
|
|
+ }
|
|
|
|
|
+ setTimeout(function() {
|
|
|
var forwardPosition = getMaskSet().p;
|
|
var forwardPosition = getMaskSet().p;
|
|
|
writeBuffer(input, getBuffer(), opts.numericInput ? seekPrevious(forwardPosition) : forwardPosition);
|
|
writeBuffer(input, getBuffer(), opts.numericInput ? seekPrevious(forwardPosition) : forwardPosition);
|
|
|
- }, 0);
|
|
|
|
|
|
|
+ }, 10);
|
|
|
}
|
|
}
|
|
|
function compositionEndEvent(e) {
|
|
function compositionEndEvent(e) {
|
|
|
compositionData = e.originalEvent.data;
|
|
compositionData = e.originalEvent.data;
|