Browse Source

fix(gui): remove focus from input if focused

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5184/head
Pranav C 2 years ago
parent
commit
db13b1d186
  1. 7
      packages/nc-gui/components/smartsheet/expanded-form/index.vue

7
packages/nc-gui/components/smartsheet/expanded-form/index.vue

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

Loading…
Cancel
Save