Also save assets on ctrl+enter
This commit is contained in:
@@ -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){
|
||||
|
Reference in New Issue
Block a user