|
|
@ -194,6 +194,9 @@ useActiveKeyupListener( |
|
|
|
} |
|
|
|
} |
|
|
|
// on alt + s save record |
|
|
|
// on alt + s save record |
|
|
|
else if (e.code === 'KeyS') { |
|
|
|
else if (e.code === 'KeyS') { |
|
|
|
|
|
|
|
// remove focus from the active input if any |
|
|
|
|
|
|
|
document.activeElement?.blur() |
|
|
|
|
|
|
|
|
|
|
|
e.stopPropagation() |
|
|
|
e.stopPropagation() |
|
|
|
e.preventDefault() |
|
|
|
e.preventDefault() |
|
|
|
if (isNew.value) { |
|
|
|
if (isNew.value) { |
|
|
@ -209,6 +212,10 @@ useActiveKeyupListener( |
|
|
|
} |
|
|
|
} |
|
|
|
// on alt + n create new record |
|
|
|
// on alt + n create new record |
|
|
|
} else if (e.code === 'KeyN') { |
|
|
|
} else if (e.code === 'KeyN') { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// remove focus from the active input if any |
|
|
|
|
|
|
|
document.activeElement?.blur() |
|
|
|
|
|
|
|
|
|
|
|
e.stopPropagation() |
|
|
|
e.stopPropagation() |
|
|
|
e.preventDefault() |
|
|
|
e.preventDefault() |
|
|
|
|
|
|
|
|
|
|
|