Browse Source

fix(gui): skip delete key and toggle options list only if char key pressed

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4459/head
Pranav C 2 years ago
parent
commit
913a3ba800
  1. 4
      packages/nc-gui/components/cell/MultiSelect.vue

4
packages/nc-gui/components/cell/MultiSelect.vue

@ -175,11 +175,15 @@ useSelectedCellKeyupListener(active, (e) => {
case 'ArrowDown':
case 'ArrowRight':
case 'ArrowLeft':
case 'Delete':
// skip
break
default:
// toggle only if char key pressed
if (e.key?.length === 1) {
e.stopPropagation()
isOpen.value = true
}
break
}
})

Loading…
Cancel
Save