mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Fix tab button on name edit fields [SCI-7922]
This commit is contained in:
parent
7f8f723cbe
commit
568ab0ff66
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