diff --git a/packages/nc-gui/components/smartsheet/grid/Table.vue b/packages/nc-gui/components/smartsheet/grid/Table.vue index 90ef25098b..b612aaedd7 100644 --- a/packages/nc-gui/components/smartsheet/grid/Table.vue +++ b/packages/nc-gui/components/smartsheet/grid/Table.vue @@ -557,6 +557,8 @@ const { return true } + if (isExpandedCellInputExist()) return + // skip keyboard event handling if there is a drawer / modal if (isDrawerOrModalExist()) { return true diff --git a/packages/nc-gui/components/smartsheet/grid/usePaginationShortcuts.ts b/packages/nc-gui/components/smartsheet/grid/usePaginationShortcuts.ts index 27ba2910e5..9eff4121c4 100644 --- a/packages/nc-gui/components/smartsheet/grid/usePaginationShortcuts.ts +++ b/packages/nc-gui/components/smartsheet/grid/usePaginationShortcuts.ts @@ -26,6 +26,8 @@ const usePaginationShortcuts = ({ } const onLeft = async (e: KeyboardEvent) => { + if (isExpandedCellInputExist()) return + if (!e.altKey) return e.preventDefault() @@ -36,6 +38,8 @@ const usePaginationShortcuts = ({ } const onRight = async (e: KeyboardEvent) => { + if (isExpandedCellInputExist()) return + if (!e.altKey) return e.preventDefault() @@ -47,6 +51,8 @@ const usePaginationShortcuts = ({ } const onDown = async (e: KeyboardEvent) => { + if (isExpandedCellInputExist()) return + if (!e.altKey) return e.preventDefault() @@ -56,6 +62,8 @@ const usePaginationShortcuts = ({ } const onUp = async (e: KeyboardEvent) => { + if (isExpandedCellInputExist()) return + if (!e.altKey) return e.preventDefault()