MOBILE-3748 rte: Fix Scan QR keyboard interaction

main
Noel De Martin 2023-05-08 13:18:25 +02:00
parent bf7659223d
commit 007a4f7656
1 changed files with 4 additions and 0 deletions

View File

@ -1032,6 +1032,10 @@ export class CoreEditorRichTextEditorComponent implements OnInit, AfterViewInit,
* @returns Promise resolved when done.
*/
async scanQR(event: Event): Promise<void> {
if (event.type == 'keyup' && !this.isValidKeyboardKey(<KeyboardEvent>event)) {
return;
}
this.stopBubble(event);
// Scan for a QR code.