Added support for Ime in IE. In IE when starting IME sequence 'compositionStart' is called to late, but fortunatelty we can do all necessary job in handler for 'keyDown'.

Change-Id: Id6f15015c45afd81cf8e74d3e03f7fa21611862d
This commit is contained in:
Inez Korczyński 2012-10-14 12:28:06 -07:00
parent a64587e44f
commit dac224e110

View file

@ -292,6 +292,9 @@ ve.ce.Surface.prototype.documentOnFocus = function () {
};
ve.ce.Surface.prototype.onCompositionStart = function () {
if ( $.browser.msie === true ) {
return;
}
this.inIme = true;
this.handleInsertion();
};
@ -358,6 +361,12 @@ ve.ce.Surface.prototype.onKeyDown = function ( e ) {
return;
}
if ( e.which === 229 && $.browser.msie === true ) {
this.inIme = true;
this.handleInsertion();
return;
}
var offset,
relativeContentOffset,
relativeStructuralOffset,