Save task/shot changes on ctrl+enter

This commit is contained in:
2016-10-20 15:33:44 +02:00
parent a31fec8917
commit 2ae9bc6d94
3 changed files with 11 additions and 2 deletions

View File

@@ -391,3 +391,12 @@ $(function() {
task_open(task_id, project_url);
});
});
$(document).on('keyup', function(e){
if (ProjectUtils.context() == 'shot' || ProjectUtils.context() == 'task'){
// Save on Ctrl + Enter
if ((e.keyCode == 10 || e.keyCode == 13) && e.ctrlKey){
$("#item-save").trigger( "click" );
};
}
});