From f595b33c9d71ef88732ec8471bcd83d223edc820 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 16 Jun 2023 22:55:00 +0530 Subject: [PATCH] feat: on dblclick/click+enter open modal Signed-off-by: Pranav C --- packages/nc-gui/components/virtual-cell/Links.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/virtual-cell/Links.vue b/packages/nc-gui/components/virtual-cell/Links.vue index 374bb90b5c..5493c0dc70 100644 --- a/packages/nc-gui/components/virtual-cell/Links.vue +++ b/packages/nc-gui/components/virtual-cell/Links.vue @@ -2,7 +2,7 @@ import { computed } from '@vue/reactivity' import type { ColumnType } from 'nocodb-sdk' import type { Ref } from 'vue' -import { CellValueInj, ColumnInj, inject } from '#imports' +import { CellValueInj, ColumnInj, inject, useSelectedCellKeyupListener } from '#imports' const value = inject(CellValueInj) @@ -64,10 +64,19 @@ const openChildList = () => { if(!isLocked.value) childListDlg = true } + +useSelectedCellKeyupListener(inject(ActiveCellInj, ref(false)), (e: KeyboardEvent) => { + switch (e.key) { + case 'Enter': + listItemsDlg.value = true + e.stopPropagation() + break + } +})