1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-18 03:57:43 +02:00

fix(web): remove processing key events in photo viewer window (#3238)

This commit is contained in:
Harry Tran
2023-07-14 01:43:11 +10:00
committed by GitHub
parent f9739c9730
commit 48c9cfb432

View File

@ -45,6 +45,9 @@
}; };
const handleKeypress = async ({ metaKey, ctrlKey, key }: KeyboardEvent) => { const handleKeypress = async ({ metaKey, ctrlKey, key }: KeyboardEvent) => {
if (window.getSelection()?.type === 'Range') {
return;
}
if ((metaKey || ctrlKey) && key === 'c') { if ((metaKey || ctrlKey) && key === 'c') {
await doCopy(); await doCopy();
} }