Fix tab button on name edit fields [SCI-7922]

This commit is contained in:
Anton 2023-02-14 18:24:50 +01:00
parent 7f8f723cbe
commit 568ab0ff66

View file

@ -180,15 +180,14 @@ var inlineEditing = (function() {
.removeClass('hidden');
e.stopPropagation();
})
.on('keyup', `${editBlocks} input`, function(e) {
.on('keydown', `${editBlocks} input`, function(e) {
var container = $(this).closest(editBlocks);
if (e.keyCode === 13) {
updateField(container);
} else if (e.keyCode === 9) {
$(`${editBlocks} .cancel-button`).trigger('click');
}
e.stopPropagation();
})
.on('blur', `${editBlocks} input`, function() {
$(`${editBlocks} .cancel-button`).trigger('click');
});
$(window).click((e) => {