Creating ohif:hotkeys package

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2017-06-14 09:19:49 +02:00
1 parent f43e0d45c7
commit 5e7edd91ee
7 files changed
+157 -13

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import { OHIF } from 'meteor/ohif:core';
import { HotkeysManager } from 'meteor/ohif:hotkeys/client/HotkeysManager';
/**
* Create hotkeys namespace using a HotkeysManager class instance
*/
const hotkeys = new HotkeysManager();
/**
* Append hotkeys namespace to OHIF namespace
*/
OHIF.hotkeys = hotkeys;
/**
* Export relevant objects
*/
export { hotkeys };