mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-23 03:23:48 +01:00
disable s to download file
This commit is contained in:
parent
7d34f916ac
commit
63b33c69b9
13
index.js
13
index.js
@ -27,8 +27,6 @@ import { createFile } from './src/utils/exportUtils.js';
|
|||||||
import sketchDataToJSON from './src/shape/sketchDataToJSON.js';
|
import sketchDataToJSON from './src/shape/sketchDataToJSON.js';
|
||||||
import { JSONToBlob } from './src/utils/binaryUtils.js';
|
import { JSONToBlob } from './src/utils/binaryUtils.js';
|
||||||
|
|
||||||
import keycode from 'keycode';
|
|
||||||
|
|
||||||
window.downloadStl = () => {
|
window.downloadStl = () => {
|
||||||
store.dispatch(async (dispatch, getState) => {
|
store.dispatch(async (dispatch, getState) => {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
@ -46,11 +44,12 @@ window.downloadSketch = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
window.addEventListener('keydown', (event) => {
|
// import keycode from 'keycode';
|
||||||
// downloadSketch
|
// window.addEventListener('keydown', (event) => {
|
||||||
const key = keycode(event);
|
// // downloadSketch
|
||||||
if (key === 's') window.downloadSketch();
|
// const key = keycode(event);
|
||||||
});
|
// if (key === 's') window.downloadSketch();
|
||||||
|
// });
|
||||||
|
|
||||||
|
|
||||||
// add model to store
|
// add model to store
|
||||||
|
Loading…
Reference in New Issue
Block a user