[OHIF-295] - Esc button should stop the creation of a measurement or annotation (#1883)

* WIP, need to fix arrow making measurement

* Update cornerstoneTools to fix cst arrow annotate event bug.
This commit is contained in:
James Petts authored and GitHub committed 2020-07-10 15:00:10 -04:00
1 parent 89cbe5bf2e
commit ce40f04f2e
11 files changed
+38 -13

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@
},
"peerDependencies": {
"cornerstone-core": "^2.3.0",
"cornerstone-tools": "4.18.0",
"cornerstone-tools": "4.18.1",
"cornerstone-wado-image-loader": "^3.1.2",
"dicom-parser": "^1.8.3"
},
+6 -1
View File
@@ -1,4 +1,4 @@
import windowLevelPresets from "./windowLevelPresets";
import windowLevelPresets from './windowLevelPresets';
/*
* Supported Keys: https://craig.is/killing/mice
@@ -19,6 +19,11 @@ export default [
{ commandName: 'rotateViewportCW', label: 'Rotate Right', keys: ['r'] },
{ commandName: 'rotateViewportCCW', label: 'Rotate Left', keys: ['l'] },
{ commandName: 'invertViewport', label: 'Invert', keys: ['i'] },
{
commandName: 'cancelMeasurement',
label: 'Cancel Cornerstone Measurement',
keys: ['esc'],
},
{
commandName: 'flipViewportVertical',
label: 'Flip Horizontally',