π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: keyabord event prevent issue if extension panel is open
Ramesh Manebd4a119d5590
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/composables/useKeyboardNavigation.ts b/packages/nc-gui/components/smartsheet/grid/canvas/composables/useKeyboardNavigation.tsindex 0fb7c95d01..f172b04756 100644--- a/packages/nc-gui/components/smartsheet/grid/canvas/composables/useKeyboardNavigation.ts+++ b/packages/nc-gui/components/smartsheet/grid/canvas/composables/useKeyboardNavigation.ts@@ -93,12 +93,18 @@ export function useKeyboardNavigation({e.preventDefault()return true}+if (isExpandedCellInputExist()) returnif (isNcDropdownOpen()) returnif (isCmdJActive() || cmdKActive()) return+if (isDrawerOrModalExist() || isLinkDropdownExist() || isGeneralOverlayActive()) {// If Extension Pane is Active, ignoreif (!isExtensionPaneActive()) return+ else if (!isActiveElementInsideExtension() && isDrawerOrModalExist()) {+ // If extension pane open and active drawer or modal is not extension modal then we have to return, else it will prevent keyboard events+ return+ }}const cmdOrCtrl = isMac() ? e.metaKey : e.ctrlKeyconst altOrOptionKey = e.altKey