File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/vs/workbench/contrib/accessibility/browser Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -114,14 +114,16 @@ class HoverAccessibleViewContribution extends Disposable {
114
114
const codeEditorService = accessor . get ( ICodeEditorService ) ;
115
115
const editor = codeEditorService . getActiveCodeEditor ( ) || codeEditorService . getFocusedCodeEditor ( ) ;
116
116
const editorHoverContent = editor ? ModesHoverController . get ( editor ) ?. getWidgetContent ( ) ?? undefined : undefined ;
117
- if ( ! editorHoverContent ) {
117
+ if ( ! editor || ! editorHoverContent ) {
118
118
return false ;
119
119
}
120
120
this . _options . language = editor ?. getModel ( ) ?. getLanguageId ( ) ?? undefined ;
121
121
accessibleViewService . show ( {
122
122
verbositySettingKey : AccessibilityVerbositySettingId . Hover ,
123
123
provideContent ( ) { return editorHoverContent ; } ,
124
- onClose ( ) { } ,
124
+ onClose ( ) {
125
+ ModesHoverController . get ( editor ) ?. focus ( ) ;
126
+ } ,
125
127
options : this . _options
126
128
} ) ;
127
129
return true ;
Original file line number Diff line number Diff line change @@ -211,7 +211,6 @@ class AccessibleView extends Disposable {
211
211
this . _configurationService . updateValue ( settingKey , false ) ;
212
212
}
213
213
provider . onKeyDown ?.( e ) ;
214
- // e.stopPropagation();
215
214
} ) ) ;
216
215
disposableStore . add ( this . _editorWidget . onKeyDown ( ( e ) => {
217
216
if ( e . keyCode === KeyCode . Escape ) {
You can’t perform that action at this time.
0 commit comments