Explorar el Código

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

Alex hace 2 años
padre
commit
593489a14c
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  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;
       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;
     }
     }