@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 +1 -1
- package/tui/info-overlay.ts +2 -2
package/package.json
CHANGED
package/tui/info-overlay.ts
CHANGED
|
@@ -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
|
|
203
|
+
} else if (data === "q" || matchesKey(data, "escape")) {
|
|
204
204
|
this.destroy();
|
|
205
205
|
this.onClose?.();
|
|
206
206
|
}
|