Add hotkeys config for modes and defaults to core
This commit is contained in:
1 parent
aa402183f4
commit
db795f3cb0
13 files changed
+182
-23
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import toolbarButtons from './toolbarButtons.js';
|
||||
import { hotkeys } from '@ohif/core';
|
||||
|
||||
export default function mode({ modeConfiguration }) {
|
||||
return {
|
||||
@@ -68,6 +69,9 @@ export default function mode({ modeConfiguration }) {
|
||||
],
|
||||
extensions: ['org.ohif.default', 'org.ohif.cornerstone'],
|
||||
sopClassHandlers: ['org.ohif.default.sopClassHandlerModule.stack'],
|
||||
hotkeys: [
|
||||
...hotkeys.defaults.hotkeyBindings
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import toolbarButtons from './toolbarButtons.js';
|
||||
import { hotkeys } from '@ohif/core';
|
||||
|
||||
const ohif = {
|
||||
layout: 'org.ohif.default.layoutTemplateModule.viewerLayout',
|
||||
@@ -94,6 +95,9 @@ export default function mode({ modeConfiguration }) {
|
||||
'org.ohif.dicom-sr',
|
||||
],
|
||||
sopClassHandlers: [ohif.sopClassHandler, dicomsr.sopClassHandler],
|
||||
hotkeys: [
|
||||
...hotkeys.defaults.hotkeyBindings
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user