diff --git a/packages/nc-gui/components/smartsheet/expanded-form/Header.vue b/packages/nc-gui/components/smartsheet/expanded-form/Header.vue index 5141bc8313..875d8cab10 100644 --- a/packages/nc-gui/components/smartsheet/expanded-form/Header.vue +++ b/packages/nc-gui/components/smartsheet/expanded-form/Header.vue @@ -58,6 +58,19 @@ const copyRecordUrl = () => { ) message.success('Copied to clipboard') } + +useEventListener(document, 'keydown', async (e: KeyboardEvent) => { + const cmdOrCtrl = isMac() ? e.metaKey : e.ctrlKey + if (cmdOrCtrl) { + switch (e.key) { + case 'Enter': { + if (isUIAllowed('tableRowUpdate')) { + await save() + } + } + } + } +})