fix(app): close the artifact viewer with Escape
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user