Skip to content

Commit 2b61214

Browse files
committed
Add comment
1 parent 9123c57 commit 2b61214

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vs/workbench/services/hover/browser/hoverService.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)