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 {
44
44
}
45
45
this . _currentHoverOptions = options ;
46
46
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 ( ) ;
48
49
if ( ! skipLastFocusedUpdate ) {
49
- if ( options . trapFocus && document . activeElement ) {
50
+ if ( trapFocus && document . activeElement ) {
50
51
this . _lastFocusedElementBeforeOpen = document . activeElement as HTMLElement ;
51
52
} else {
52
53
this . _lastFocusedElementBeforeOpen = undefined ;
You can’t perform that action at this time.
0 commit comments