File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/vs/workbench/services/hover/browser Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,10 @@ export class HoverService implements IHoverService {
4444 }
4545 this . _currentHoverOptions = options ;
4646 this . _lastHoverOptions = options ;
47- options . trapFocus = options . trapFocus || this . _accessibilityService . isScreenReaderOptimized ( ) ;
47+ // HACK, remove when #189076 is fixed
48+ const trapFocus = options . trapFocus || this . _accessibilityService . isScreenReaderOptimized ( ) ;
4849 if ( ! skipLastFocusedUpdate ) {
49- if ( options . trapFocus && document . activeElement ) {
50+ if ( trapFocus && document . activeElement ) {
5051 this . _lastFocusedElementBeforeOpen = document . activeElement as HTMLElement ;
5152 } else {
5253 this . _lastFocusedElementBeforeOpen = undefined ;
You can’t perform that action at this time.
0 commit comments