mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 10:06:53 +08:00
Merge pull request #4976 from aignatov-bio/ai-sci-7922-fix-name-editing
Fix tab button on name edit fields [SCI-7922]
This commit is contained in:
commit
2f25e7ef7c
1 changed files with 3 additions and 4 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue