Sfoglia il codice sorgente

支持 ⌘ Command

visuddhinanda 3 anni fa
parent
commit
6e025bcae1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
       onClick={(event: React.MouseEvent<HTMLSpanElement, MouseEvent>) => {
-        if (event.ctrlKey) {
+        if (event.ctrlKey || event.metaKey) {
           setEditable(true);
         }
       }}