Press enter to add a new item in kanban

This commit is contained in:
yflory 2019-11-13 16:52:54 +01:00 committed by ansuz
parent abbe090d05
commit b4cc525ca6

View file

@ -152,6 +152,9 @@ define([
e.preventDefault();
e.stopPropagation();
save();
if (!$input.val()) { return; }
if (!$(el).closest('.kanban-item').is(':last-child')) { return; }
$(el).closest('.kanban-board').find('.kanban-title-button.fa-plus').click();
return;
}
if (e.which === 27) {
@ -301,6 +304,8 @@ define([
e.preventDefault();
e.stopPropagation();
save();
if (!$input.val()) { return; }
$(el).closest('.kanban-board').find('.kanban-title-button.fa-plus').click();
return;
}
if (e.which === 27) {