Creating action commands

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2017-06-14 09:19:49 +02:00
1 parent fa7ad2c51e
commit dbb10fa444
3 files changed
+116 -152

No files matched your search

@@ -31,10 +31,10 @@ Template.imageControls.events({
};
if (event.which === keys.DOWN) {
OHIF.viewer.hotkeyFunctions.scrollDown();
OHIF.commands.run('scrollDown');
event.preventDefault();
} else if (event.which === keys.UP) {
OHIF.viewer.hotkeyFunctions.scrollUp();
OHIF.commands.run('scrollUp');
event.preventDefault();
}
},