Browse Source

支持 ⌘ Command

visuddhinanda 3 years ago
parent
commit
6e025bcae1
1 changed files with 1 additions and 1 deletions
  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);
         }
         }
       }}
       }}