Adjustments on hotkeys and presets

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2017-06-14 09:19:49 +02:00
1 parent e6b5a21ae2
commit 2f7722d569
10 files changed
+23 -42

No files matched your search

@@ -1,7 +0,0 @@
<template name="hotkeysDialog">
{{#dialogSimple (extend this dialogClass='dialog-hotkeys' title='Keyboard Shortcuts')}}
{{! >hotkeysForm this}}
<hr>
{{>windowLevelPresetsForm this}}
{{/dialogSimple}}
</template>
@@ -1,3 +0,0 @@
.dialog-hotkeys .modal-body
max-height: 80vh
overflow-y: auto
@@ -3,8 +3,7 @@
{{#each hotkeyInputInformation in getHotkeyInputInformationList}}
{{>inputText (extend hotkeyInputInformation class='hotkey')}}
{{/each}}
<hr>
<div class="clearfix">
<div class="clearfix form-buttons">
{{#button class='btn btn-primary pull-right' action='save'}}Save{{/button}}
{{#button class='btn btn-secondary pull-right m-r-1' action='resetDefaults'}}Reset to Defaults{{/button}}
</div>
@@ -71,11 +71,6 @@ Template.hotkeysForm.onCreated(() => {
};
});
// >>>> REMOVE ME
Meteor.startup(() => {
OHIF.ui.showDialog('hotkeysDialog', { contextName: 'viewer' });
});
Template.hotkeysForm.events({
'keydown .hotkey'(event, instance) {
if (instance.allowedKeys.indexOf(event.keyCode) > -1) {
@@ -1,5 +1,2 @@
import './dialog.html';
import './dialog.styl';
import './form.html';
import './form.js';