diff --git a/src/scripts/tutti/10_tasks.js b/src/scripts/tutti/10_tasks.js index f8e76aa..e879200 100644 --- a/src/scripts/tutti/10_tasks.js +++ b/src/scripts/tutti/10_tasks.js @@ -440,9 +440,9 @@ $(function() { }); }); +var save_on_ctrl_enter = ['shot', 'asset', 'task']; $(document).on('keyup', function(e){ - if (ProjectUtils.context() == 'shot' || ProjectUtils.context() == 'task'){ - + if ($.inArray(ProjectUtils.context(), save_on_ctrl_enter)) { // Save on Ctrl + Enter anytime except when comments is on focus if ($('#comment_field') && $('#comment_field').not(':focus')){ if ((e.keyCode == 10 || e.keyCode == 13) && e.ctrlKey){