Creating action commands
This commit is contained in:
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();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user