From 558eeb8a1eb05c62e568de037df537476bdf14b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Mon, 2 Nov 2020 04:24:37 +0200 Subject: [PATCH] Prevent default fix --- .../file/file-preview-screen/file-preview-screen.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts index 7b9195f45..0489a2789 100644 --- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts @@ -418,6 +418,8 @@ export class FilePreviewScreenComponent implements OnInit { } preventArrowDefault($event: KeyboardEvent) { - $event.preventDefault(); + if (KEY_ARRAY.includes($event.key)) { + $event.preventDefault(); + } } }