Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

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.ts
index 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()) return
if (isNcDropdownOpen()) return
if (isCmdJActive() || cmdKActive()) return
+
if (isDrawerOrModalExist() || isLinkDropdownExist() || isGeneralOverlayActive()) {
// If Extension Pane is Active, ignore
if (!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.ctrlKey
const altOrOptionKey = e.altKey