Skip to content

Commit 63b33c6

Browse files
committed
disable s to download file
1 parent 7d34f91 commit 63b33c6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

index.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ import { createFile } from './src/utils/exportUtils.js';
2727
import sketchDataToJSON from './src/shape/sketchDataToJSON.js';
2828
import { JSONToBlob } from './src/utils/binaryUtils.js';
2929

30-
import keycode from 'keycode';
31-
3230
window.downloadStl = () => {
3331
store.dispatch(async (dispatch, getState) => {
3432
const state = getState();
@@ -46,11 +44,12 @@ window.downloadSketch = () => {
4644
});
4745
};
4846

49-
window.addEventListener('keydown', (event) => {
50-
// downloadSketch
51-
const key = keycode(event);
52-
if (key === 's') window.downloadSketch();
53-
});
47+
// import keycode from 'keycode';
48+
// window.addEventListener('keydown', (event) => {
49+
// // downloadSketch
50+
// const key = keycode(event);
51+
// if (key === 's') window.downloadSketch();
52+
// });
5453

5554

5655
// add model to store

0 commit comments

Comments
 (0)