fix(app): close the artifact viewer with Escape

This commit is contained in:
2026-10-26 18:41:44 +00:00
parent 41a3be8715
commit 56f18acf78
3 changed files with 44 additions and 0 deletions
@@ -245,6 +245,8 @@ class _ArtifactViewerPageState extends State<ArtifactViewerPage> {
body = ArrowKeyPager(
onPrevious: () => _step(-1),
onNext: () => _step(1),
// Escape closes the viewer, like the web's overlay.
onEscape: () => Navigator.of(context).maybePop(),
child: body,
);
if (usesCupertinoHost(context)) {