@codingame/monaco-vscode-welcome-service-override 34.1.1 → 34.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-welcome-service-override",
3
- "version": "34.1.1",
3
+ "version": "34.1.3",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - welcome service-override",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "34.1.1"
18
+ "@codingame/monaco-vscode-api": "34.1.3"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -2,7 +2,7 @@
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
3
  import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
4
4
  import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
5
- import { getActiveWindow, append, $, addDisposableListener, EventType, clearNode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
5
+ import { getActiveElement, append, $, addDisposableListener, EventType, getActiveWindow, clearNode, isActiveElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
6
6
  import { isCancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
7
7
  import { StopWatch } from '@codingame/monaco-vscode-api/vscode/vs/base/common/stopwatch';
8
8
  import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
@@ -111,7 +111,7 @@ let OnboardingVariationA = class OnboardingVariationA extends Disposable {
111
111
  return;
112
112
  }
113
113
  this._isShowing = true;
114
- this.previouslyFocusedElement = getActiveWindow().document.activeElement;
114
+ this.previouslyFocusedElement = getActiveElement();
115
115
  const container = this.layoutService.activeContainer;
116
116
  this.overlay = append(container, $(".onboarding-a-overlay"));
117
117
  this.overlay.setAttribute("role", "dialog");
@@ -1115,10 +1115,10 @@ let OnboardingVariationA = class OnboardingVariationA extends Disposable {
1115
1115
  }
1116
1116
  const first = allFocusable[0];
1117
1117
  const last = allFocusable[allFocusable.length - 1];
1118
- if (shiftKey && getActiveWindow().document.activeElement === first) {
1118
+ if (shiftKey && isActiveElement(first)) {
1119
1119
  e.preventDefault();
1120
1120
  last.focus();
1121
- } else if (!shiftKey && getActiveWindow().document.activeElement === last) {
1121
+ } else if (!shiftKey && isActiveElement(last)) {
1122
1122
  e.preventDefault();
1123
1123
  first.focus();
1124
1124
  }