diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2019-11-10 11:43:19 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2019-11-10 11:43:19 +0000 |
| commit | 4d519b3f27a7e0f66a6650e996d903f9bca3b0f3 (patch) | |
| tree | 42cb1b88ab9dc130f28da6aec5c322f37f56e31b /src/index.js | |
| parent | load example on start (diff) | |
| download | leap-finger-scan-master.tar.gz leap-finger-scan-master.zip | |
Diffstat (limited to 'src/index.js')
| -rw-r--r-- | src/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index e5e0435..668583c 100644 --- a/src/index.js +++ b/src/index.js @@ -254,6 +254,8 @@ window.onkeydown = (e) => { reader.onload = e => restore(JSON.parse(e.target.result)); reader.readAsText(e.target.files[0]); } + } else if (e.key === 'Escape') { + transform.detach(); } else if (e.key === 'Shift') { transform.setMode('rotate'); } else if (e.key === 'Alt') { |
