@xterm/xterm 5.6.0-beta.13 → 5.6.0-beta.14

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@xterm/xterm",
3
3
  "description": "Full xterm terminal, in your browser",
4
- "version": "5.6.0-beta.13",
4
+ "version": "5.6.0-beta.14",
5
5
  "main": "lib/xterm.js",
6
6
  "style": "css/xterm.css",
7
7
  "types": "typings/xterm.d.ts",
@@ -13,7 +13,7 @@ export class CoreBrowserService extends Disposable implements ICoreBrowserServic
13
13
 
14
14
  private _isFocused = false;
15
15
  private _cachedIsFocused: boolean | undefined = undefined;
16
- private _screenDprMonitor = new ScreenDprMonitor(this._window);
16
+ private _screenDprMonitor = this.register(new ScreenDprMonitor(this._window));
17
17
 
18
18
  private readonly _onDprChange = this.register(new EventEmitter<number>());
19
19
  public readonly onDprChange = this._onDprChange.event;
@@ -31,8 +31,12 @@ export class CoreBrowserService extends Disposable implements ICoreBrowserServic
31
31
  this.register(this.onWindowChange(w => this._screenDprMonitor.setWindow(w)));
32
32
  this.register(forwardEvent(this._screenDprMonitor.onDprChange, this._onDprChange));
33
33
 
34
- this._textarea.addEventListener('focus', () => this._isFocused = true);
35
- this._textarea.addEventListener('blur', () => this._isFocused = false);
34
+ this.register(
35
+ addDisposableDomListener(this._textarea, 'focus', () => (this._isFocused = true))
36
+ );
37
+ this.register(
38
+ addDisposableDomListener(this._textarea, 'blur', () => (this._isFocused = false))
39
+ );
36
40
  }
37
41
 
38
42
  public get window(): Window & typeof globalThis {