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 'ArrowDown':
case 'ArrowRight': case 'ArrowRight':
case 'ArrowLeft': case 'ArrowLeft':
case 'Delete':
// skip // skip
break break
default: default:
// toggle only if char key pressed
if (e.key?.length === 1) {
e.stopPropagation() e.stopPropagation()
isOpen.value = true isOpen.value = true
}
break break
} }
}) })

Loading…
Cancel
Save