浏览代码

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;
     }