mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
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:
parent
a64587e44f
commit
dac224e110
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue