@remit/web-client 0.0.205 → 0.0.206
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": "@remit/web-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.206",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Remit web client, published as composable primitives — the app shell, auth shells, and runtime config. A distributor imports what it composes and bundles it.",
|
|
6
6
|
"exports": {
|
|
@@ -141,8 +141,15 @@ export const MoveToTrigger = ({
|
|
|
141
141
|
close();
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
|
+
// The popover owns Escape while it is open (#732). The global triage
|
|
145
|
+
// layer listens on window and maps Escape to `back`, which closes the
|
|
146
|
+
// conversation; stopping propagation keeps one press from dismissing
|
|
147
|
+
// both. A second Escape then reaches the layer and closes as usual.
|
|
144
148
|
const handleKey = (event: KeyboardEvent) => {
|
|
145
|
-
if (event.key === "Escape")
|
|
149
|
+
if (event.key === "Escape") {
|
|
150
|
+
event.stopPropagation();
|
|
151
|
+
close();
|
|
152
|
+
}
|
|
146
153
|
};
|
|
147
154
|
document.addEventListener("mousedown", handlePointer);
|
|
148
155
|
document.addEventListener("keydown", handleKey);
|