Commit aeef7d1e authored by wenmo's avatar wenmo

增加mac快捷键保存

parent 67d9e72b
......@@ -51,7 +51,7 @@ const StudioMenu = (props: any) => {
const [graphData, setGraphData] = useState();
const onKeyDown = useCallback((e) => {
if(e.keyCode === 83 && e.ctrlKey === true){
if(e.keyCode === 83 && (e.ctrlKey === true || e.metaKey)){
e.preventDefault();
if(current) {
props.saveTask(current);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment