Parcourir la source

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

Alex il y a 1 an
Parent
commit
593489a14c
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      web/src/lib/components/photos-page/asset-grid.svelte

+ 3 - 2
web/src/lib/components/photos-page/asset-grid.svelte

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