mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 19:13:49 +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 { JSONToBlob } from './src/utils/binaryUtils.js';
|
||||
|
||||
import keycode from 'keycode';
|
||||
|
||||
window.downloadStl = () => {
|
||||
store.dispatch(async (dispatch, getState) => {
|
||||
const state = getState();
|
||||
@ -46,11 +44,12 @@ window.downloadSketch = () => {
|
||||
});
|
||||
};
|
||||
|
||||
window.addEventListener('keydown', (event) => {
|
||||
// downloadSketch
|
||||
const key = keycode(event);
|
||||
if (key === 's') window.downloadSketch();
|
||||
});
|
||||
// import keycode from 'keycode';
|
||||
// window.addEventListener('keydown', (event) => {
|
||||
// // downloadSketch
|
||||
// const key = keycode(event);
|
||||
// if (key === 's') window.downloadSketch();
|
||||
// });
|
||||
|
||||
|
||||
// add model to store
|
||||
|
Loading…
Reference in New Issue
Block a user