@@ -30,6 +30,7 @@ import { ViewContext } from 'vs/editor/common/view/viewContext';
3030import * as viewEvents from 'vs/editor/common/view/viewEvents' ;
3131import { AccessibilitySupport } from 'vs/platform/accessibility/common/accessibility' ;
3232import { IEditorAriaOptions } from 'vs/editor/browser/editorBrowser' ;
33+ import { MOUSE_CURSOR_TEXT_CSS_CLASS_NAME } from 'vs/base/browser/ui/mouseCursor/mouseCursor' ;
3334
3435export interface ITextAreaHandlerHelper {
3536 visibleRangeForPositionRelativeToEditor ( lineNumber : number , column : number ) : HorizontalPosition | null ;
@@ -117,7 +118,7 @@ export class TextAreaHandler extends ViewPart {
117118 // Text Area (The focus will always be in the textarea when the cursor is blinking)
118119 this . textArea = createFastDomNode ( document . createElement ( 'textarea' ) ) ;
119120 PartFingerprints . write ( this . textArea , PartFingerprint . TextArea ) ;
120- this . textArea . setClassName ( ' inputarea mouse-text' ) ;
121+ this . textArea . setClassName ( ` inputarea ${ MOUSE_CURSOR_TEXT_CSS_CLASS_NAME } ` ) ;
121122 this . textArea . setAttribute ( 'wrap' , 'off' ) ;
122123 this . textArea . setAttribute ( 'autocorrect' , 'off' ) ;
123124 this . textArea . setAttribute ( 'autocapitalize' , 'off' ) ;
@@ -279,7 +280,7 @@ export class TextAreaHandler extends ViewPart {
279280 }
280281
281282 // Show the textarea
282- this . textArea . setClassName ( ' inputarea mouse-text ime-input' ) ;
283+ this . textArea . setClassName ( ` inputarea ${ MOUSE_CURSOR_TEXT_CSS_CLASS_NAME } ime-input` ) ;
283284
284285 this . _viewController . compositionStart ( 'keyboard' ) ;
285286 } ) ) ;
@@ -301,7 +302,7 @@ export class TextAreaHandler extends ViewPart {
301302 this . _visibleTextArea = null ;
302303 this . _render ( ) ;
303304
304- this . textArea . setClassName ( ' inputarea mouse-text' ) ;
305+ this . textArea . setClassName ( ` inputarea ${ MOUSE_CURSOR_TEXT_CSS_CLASS_NAME } ` ) ;
305306 this . _viewController . compositionEnd ( 'keyboard' ) ;
306307 } ) ) ;
307308
0 commit comments