From 007a4f76564b7ba24a237bf8ad0b76a093d1a410 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Mon, 8 May 2023 13:18:25 +0200 Subject: [PATCH] MOBILE-3748 rte: Fix Scan QR keyboard interaction --- .../editor/components/rich-text-editor/rich-text-editor.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/features/editor/components/rich-text-editor/rich-text-editor.ts b/src/core/features/editor/components/rich-text-editor/rich-text-editor.ts index f039f7191..fde9e250e 100644 --- a/src/core/features/editor/components/rich-text-editor/rich-text-editor.ts +++ b/src/core/features/editor/components/rich-text-editor/rich-text-editor.ts @@ -1032,6 +1032,10 @@ export class CoreEditorRichTextEditorComponent implements OnInit, AfterViewInit, * @returns Promise resolved when done. */ async scanQR(event: Event): Promise { + if (event.type == 'keyup' && !this.isValidKeyboardKey(event)) { + return; + } + this.stopBubble(event); // Scan for a QR code.