@codingame/monaco-vscode-view-common-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-view-common-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 - view-common service-override",
6
6
  "keywords": [],
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "34.1.1",
19
- "@codingame/monaco-vscode-bulk-edit-service-override": "34.1.1"
18
+ "@codingame/monaco-vscode-api": "34.1.3",
19
+ "@codingame/monaco-vscode-bulk-edit-service-override": "34.1.3"
20
20
  },
21
21
  "main": "index.js",
22
22
  "module": "index.js",
@@ -1,7 +1,7 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
3
  import { isFirefox } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/browser';
4
- import { getWindowById, getActiveElement, createElement, EventType, addDisposableListener, getWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
+ import { getWindowById, getActiveElement, createElement, EventType, addDisposableListener, getWindow, isActiveElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
5
5
  import { parentOriginHash } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/iframe';
6
6
  import { ThrottledDelayer, promiseWithResolvers } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
7
7
  import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
@@ -650,7 +650,7 @@ let WebviewElement = class WebviewElement extends Disposable {
650
650
  return event.isTrusted || !!this._content.options.forwardUntrustedKeypressEvents;
651
651
  }
652
652
  isActiveElement() {
653
- return !!this.element && this.window?.document.activeElement === this.element;
653
+ return !!this.element && isActiveElement(this.element);
654
654
  }
655
655
  handleKeyEvent(type, event) {
656
656
  if (!this.shouldForwardKeyEvent(event) || !this.isActiveElement()) {