소스 검색

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

Alex 2 년 전
부모
커밋
593489a14c
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  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;
     }