소스 검색

支持 ⌘ Command

visuddhinanda 3 년 전
부모
커밋
6e025bcae1
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dashboard/src/components/template/Wbw/WbwMeaning.tsx

+ 1 - 1
dashboard/src/components/template/Wbw/WbwMeaning.tsx

@@ -84,7 +84,7 @@ const WbwMeaningWidget = ({
   ) : (
   ) : (
     <span
     <span
       onClick={(event: React.MouseEvent<HTMLSpanElement, MouseEvent>) => {
       onClick={(event: React.MouseEvent<HTMLSpanElement, MouseEvent>) => {
-        if (event.ctrlKey) {
+        if (event.ctrlKey || event.metaKey) {
           setEditable(true);
           setEditable(true);
         }
         }
       }}
       }}