@xterm/xterm 5.6.0-beta.12 → 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
|
@@ -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.
|
|
35
|
-
|
|
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 {
|