Integrating hotkeys with commands
This commit is contained in:
1 parent
199115a9d3
commit
1a0729336b
7 files changed
+102
-89
No files matched your search
@@ -102,7 +102,7 @@ Template.toolbarSection.helpers({
|
||||
iconClasses: 'fa fa-trash'
|
||||
});
|
||||
|
||||
var buttonData = [];
|
||||
const buttonData = [];
|
||||
|
||||
buttonData.push({
|
||||
id: 'zoom',
|
||||
@@ -175,7 +175,8 @@ Template.toolbarSection.helpers({
|
||||
id: 'toggleCinePlay',
|
||||
title: 'Toggle CINE Play',
|
||||
classes: 'imageViewerCommand',
|
||||
buttonTemplateName: 'playClipButton'
|
||||
buttonTemplateName: 'playClipButton',
|
||||
active: OHIF.viewerbase.viewportUtils.isPlaying
|
||||
});
|
||||
|
||||
buttonData.push({
|
||||
@@ -183,7 +184,8 @@ Template.toolbarSection.helpers({
|
||||
title: 'CINE',
|
||||
classes: 'imageViewerCommand',
|
||||
iconClasses: 'fa fa-youtube-play',
|
||||
disableFunction: OHIF.viewerbase.viewportUtils.hasMultipleFrames
|
||||
disableFunction: OHIF.viewerbase.viewportUtils.hasMultipleFrames,
|
||||
active: () => $('#cineDialog').is(':visible')
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user