@@ -61,7 +61,7 @@ export class NativeEditContext extends AbstractEditContext {
61
61
private _parent : HTMLElement | undefined ;
62
62
private _decorations : string [ ] = [ ] ;
63
63
private _primarySelection : Selection = new Selection ( 1 , 1 , 1 , 1 ) ;
64
- private _isComposing : boolean = false ;
64
+
65
65
66
66
private _targetWindowId : number = - 1 ;
67
67
private _scrollTop : number = 0 ;
@@ -185,15 +185,13 @@ export class NativeEditContext extends AbstractEditContext {
185
185
this . _emitTypeEvent ( this . _viewController , e ) ;
186
186
} ) ) ;
187
187
this . _register ( editContextAddDisposableListener ( this . _editContext , 'compositionstart' , ( e ) => {
188
- this . _isComposing = true ;
189
188
// Utlimately fires onDidCompositionStart() on the editor to notify for example suggest model of composition state
190
189
// Updates the composition state of the cursor controller which determines behavior of typing with interceptors
191
190
this . _viewController . compositionStart ( ) ;
192
191
// Emits ViewCompositionStartEvent which can be depended on by ViewEventHandlers
193
192
this . _context . viewModel . onCompositionStart ( ) ;
194
193
} ) ) ;
195
194
this . _register ( editContextAddDisposableListener ( this . _editContext , 'compositionend' , ( e ) => {
196
- this . _isComposing = false ;
197
195
// Utlimately fires compositionEnd() on the editor to notify for example suggest model of composition state
198
196
// Updates the composition state of the cursor controller which determines behavior of typing with interceptors
199
197
this . _viewController . compositionEnd ( ) ;
@@ -408,7 +406,7 @@ export class NativeEditContext extends AbstractEditContext {
408
406
}
409
407
410
408
private _onType ( viewController : ViewController , typeInput : ITypeData ) : void {
411
- if ( typeInput . replacePrevCharCnt || typeInput . replaceNextCharCnt || typeInput . positionDelta || this . _isComposing ) {
409
+ if ( typeInput . replacePrevCharCnt || typeInput . replaceNextCharCnt || typeInput . positionDelta ) {
412
410
viewController . compositionType ( typeInput . text , typeInput . replacePrevCharCnt , typeInput . replaceNextCharCnt , typeInput . positionDelta ) ;
413
411
} else {
414
412
viewController . type ( typeInput . text ) ;
0 commit comments