@@ -96,10 +96,6 @@ class AccessibleView extends Disposable {
96
96
getAnchor : ( ) => this . _editorContainer ,
97
97
render : ( container ) => {
98
98
return this . _render ( provider , container ) ;
99
- } ,
100
- onHide : ( ) => {
101
- provider . onClose ( ) ;
102
- this . _keyListener ?. dispose ( ) ;
103
99
}
104
100
} ;
105
101
this . _contextViewService . showContextView ( delegate ) ;
@@ -128,6 +124,9 @@ class AccessibleView extends Disposable {
128
124
this . _keyListener = this . _register ( this . _editorWidget . onKeyUp ( ( e ) => {
129
125
if ( e . keyCode === KeyCode . Escape ) {
130
126
this . _contextViewService . hideContextView ( ) ;
127
+ // Delay to allow the context view to hide #186514
128
+ setTimeout ( ( ) => provider . onClose ( ) , 100 ) ;
129
+ this . _keyListener ?. dispose ( ) ;
131
130
} else if ( e . keyCode === KeyCode . KeyD && this . _configurationService . getValue ( settingKey ) ) {
132
131
this . _configurationService . updateValue ( settingKey , false ) ;
133
132
} else if ( e . keyCode === KeyCode . KeyH && provider . options . readMoreUrl ) {
@@ -143,7 +142,7 @@ class AccessibleView extends Disposable {
143
142
this . _editorWidget . updateOptions ( { ariaLabel : provider . options . ariaLabel } ) ;
144
143
this . _editorWidget . focus ( ) ;
145
144
} ) ;
146
- return toDisposable ( ( ) => provider . onClose ( ) ) ;
145
+ return toDisposable ( ( ) => { } ) ;
147
146
}
148
147
149
148
private _layout ( ) : void {
0 commit comments