text area fullscren fix

This commit is contained in:
Timo Bejan 2021-08-13 14:48:25 +03:00
parent 3bf27c5060
commit 8162698120

View File

@ -363,7 +363,7 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
if (['f', 'F'].includes($event.key)) {
// if you type in an input, don't toggle full-screen
if ($event.target instanceof HTMLInputElement) {
if ($event.target instanceof HTMLInputElement || $event.target instanceof HTMLTextAreaElement) {
return;
}
this.toggleFullScreen();