0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-02-11 01:18:24 -05:00

fix(web): cannot use shift-select (#3343)

This commit is contained in:
Alex 2023-07-19 21:15:22 -05:00 committed by GitHub
parent 9f7bf36786
commit 593489a14c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,17 +162,18 @@
return; return;
} }
if (e.shiftKey && e.key !== '/') { if (e.key == 'Shift') {
e.preventDefault(); e.preventDefault();
shiftKeyIsDown = true; shiftKeyIsDown = true;
} }
}; };
const onKeyUp = (e: KeyboardEvent) => { const onKeyUp = (e: KeyboardEvent) => {
if ($isSearchEnabled) { if ($isSearchEnabled) {
return; return;
} }
if (e.shiftKey && e.key !== '/') { if (e.key == 'Shift') {
e.preventDefault(); e.preventDefault();
shiftKeyIsDown = false; shiftKeyIsDown = false;
} }