Updated hotkey presets to the specified defaults. Closes LT-21

This commit is contained in:
Erik Ziegler 2015-12-14 08:31:25 -05:00
parent 646ffb2b46
commit 37fa29cce4
2 changed files with 16 additions and 8 deletions

View File

@ -51,11 +51,19 @@ Template.viewer.onCreated(function() {
Session.set('UpdateCINE', Random.id());
},
toggleLesionTrackerTools: toggleLesionTrackerTools,
clearTools: clearTools
clearTools: clearTools,
lesion: function() {
toolManager.setActiveTool("lesion");
},
nonTarget: function() {
toolManager.setActiveTool("nonTarget");
},
};
// The hotkey can also be an array (e.g. ["NUMPAD0", "0"])
OHIF.viewer.defaultHotkeys.toggleLesionTrackerTools = "Y";
OHIF.viewer.defaultHotkeys.toggleLesionTrackerTools = "O";
OHIF.viewer.defaultHotkeys.lesion = "T"; // Target
OHIF.viewer.defaultHotkeys.nonTarget = "N"; // Non-target
// Enable hotkeys
enableHotkeys();

View File

@ -10,10 +10,8 @@ Meteor.startup(function() {
defaultTool: "ESC",
angle: "A",
stackScroll: "S",
wwwcRegion: "R",
pan: "P",
magnify: "M",
length: "L",
scrollDown: "DOWN",
scrollUp: "UP",
nextPanel: "RIGHT",
@ -22,11 +20,10 @@ Meteor.startup(function() {
flipV: "V",
flipH: "H",
wwwc: "W",
annotate: "T",
zoom: "Z",
cinePlay: "SPACE",
rotateR: "F",
rotateL: "G",
toggleTools: 'TAB',
rotateR: "R",
rotateL: "L",
toggleOverlayTags: 'SHIFT',
WLPresetSoftTissue: ["NUMPAD1", "1"],
WLPresetLung: ["NUMPAD2", "2"],
@ -53,6 +50,9 @@ Meteor.startup(function() {
wwwc: function() {
toolManager.setActiveTool("wwwc");
},
zoom: function() {
toolManager.setActiveTool("zoom");
},
angle: function() {
toolManager.setActiveTool("angle");
},