@pi-unipi/info-screen 2.2.0 → 2.2.1

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": "@pi-unipi/info-screen",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Dashboard and module registry for Unipi — configurable info overlay with tabbed groups",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  import type { Component } from "@earendil-works/pi-tui";
11
- import { truncateToWidth, visibleWidth, wrapTextWithAnsi } from "@earendil-works/pi-tui";
11
+ import { matchesKey, truncateToWidth, visibleWidth, wrapTextWithAnsi } from "@earendil-works/pi-tui";
12
12
  import type { Theme } from "@earendil-works/pi-coding-agent";
13
13
  import { infoRegistry } from "../registry.js";
14
14
  import { getInfoSettings } from "../config.js";
@@ -200,7 +200,7 @@ export class InfoOverlay implements Component {
200
200
  } else if (data === "R") {
201
201
  // Refresh all
202
202
  this.refreshAll();
203
- } else if (data === "q" || data === "\x1b") {
203
+ } else if (data === "q" || matchesKey(data, "escape")) {
204
204
  this.destroy();
205
205
  this.onClose?.();
206
206
  }