Update ExcalidrawView.ts

This commit is contained in:
zsviczian
2024-09-12 11:39:25 +02:00
committed by GitHub
parent 9fd4ae2615
commit 904bc7c994

View File

@@ -3639,6 +3639,7 @@ export default class ExcalidrawView extends TextFileView {
private excalidrawDIVonKeyDown(event: KeyboardEvent) {
//(process.env.NODE_ENV === 'development') && DEBUGGING && debug(this.excalidrawDIVonKeyDown, "ExcalidrawView.excalidrawDIVonKeyDown", event);
if (this.semaphores?.viewunload) return;
if (event.target === this.excalidrawWrapperRef.current) {
return;
} //event should originate from the canvas