diff --git a/packages/nc-gui/components/cell/Currency.vue b/packages/nc-gui/components/cell/Currency.vue index 5cccfb7cf1..bff861c977 100644 --- a/packages/nc-gui/components/cell/Currency.vue +++ b/packages/nc-gui/components/cell/Currency.vue @@ -61,6 +61,10 @@ onMounted(() => { v-model="vModel" class="w-full h-full border-none outline-none px-2" @blur="submitCurrency" + @keydown.down.stop + @keydown.left.stop + @keydown.right.stop + @keydown.up.stop /> {{ currency }} diff --git a/packages/nc-gui/components/cell/Decimal.vue b/packages/nc-gui/components/cell/Decimal.vue index 9581665304..743186fd30 100644 --- a/packages/nc-gui/components/cell/Decimal.vue +++ b/packages/nc-gui/components/cell/Decimal.vue @@ -30,6 +30,10 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() type="number" step="0.1" @blur="editEnabled = false" + @keydown.down.stop + @keydown.left.stop + @keydown.right.stop + @keydown.up.stop /> {{ vModel }} diff --git a/packages/nc-gui/components/cell/Duration.vue b/packages/nc-gui/components/cell/Duration.vue index 4a8a833369..219bc1280b 100644 --- a/packages/nc-gui/components/cell/Duration.vue +++ b/packages/nc-gui/components/cell/Duration.vue @@ -84,6 +84,10 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() @blur="submitDuration" @keypress="checkDurationFormat($event)" @keydown.enter="submitDuration" + @keydown.down.stop + @keydown.left.stop + @keydown.right.stop + @keydown.up.stop /> {{ localState }} diff --git a/packages/nc-gui/components/cell/Email.vue b/packages/nc-gui/components/cell/Email.vue index 2ab60c42f6..d90bf0f8f5 100644 --- a/packages/nc-gui/components/cell/Email.vue +++ b/packages/nc-gui/components/cell/Email.vue @@ -24,7 +24,11 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() diff --git a/packages/nc-gui/components/cell/Integer.vue b/packages/nc-gui/components/cell/Integer.vue index 63c15a5546..7b441c336b 100644 --- a/packages/nc-gui/components/cell/Integer.vue +++ b/packages/nc-gui/components/cell/Integer.vue @@ -34,6 +34,10 @@ function onKeyDown(evt: KeyboardEvent) { type="number" @blur="editEnabled = false" @keydown="onKeyDown" + @keydown.down.stop + @keydown.left.stop + @keydown.right.stop + @keydown.up.stop /> {{ vModel }} diff --git a/packages/nc-gui/components/cell/Percent.vue b/packages/nc-gui/components/cell/Percent.vue index 381b46df05..c518033aec 100644 --- a/packages/nc-gui/components/cell/Percent.vue +++ b/packages/nc-gui/components/cell/Percent.vue @@ -21,6 +21,10 @@ const vModel = useVModel(props, 'modelValue', emits) class="w-full !border-none text-base" :class="{ '!px-2': editEnabled }" type="number" + @keydown.down.stop + @keydown.left.stop + @keydown.right.stop + @keydown.up.stop /> {{ vModel }} diff --git a/packages/nc-gui/components/cell/PhoneNumber.vue b/packages/nc-gui/components/cell/PhoneNumber.vue index 0397b5ff55..618fb25182 100644 --- a/packages/nc-gui/components/cell/PhoneNumber.vue +++ b/packages/nc-gui/components/cell/PhoneNumber.vue @@ -17,5 +17,6 @@ const vModel = useVModel(props, 'modelValue', emits) diff --git a/packages/nc-gui/components/cell/Text.vue b/packages/nc-gui/components/cell/Text.vue index 53e7aa02b1..9094a4adcb 100644 --- a/packages/nc-gui/components/cell/Text.vue +++ b/packages/nc-gui/components/cell/Text.vue @@ -27,6 +27,10 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() class="h-full w-full outline-none bg-transparent" :class="{ '!px-2': editEnabled }" @blur="editEnabled = false" + @keydown.down.stop + @keydown.left.stop + @keydown.right.stop + @keydown.up.stop /> {{ vModel }} diff --git a/packages/nc-gui/components/cell/TextArea.vue b/packages/nc-gui/components/cell/TextArea.vue index db3b054bcf..421be3d606 100644 --- a/packages/nc-gui/components/cell/TextArea.vue +++ b/packages/nc-gui/components/cell/TextArea.vue @@ -26,6 +26,10 @@ const focus: VNodeRef = (el) => (el as HTMLTextAreaElement)?.focus() @blur="editEnabled = false" @keydown.alt.enter.stop @keydown.shift.enter.stop + @keydown.down.stop + @keydown.left.stop + @keydown.right.stop + @keydown.up.stop /> {{ vModel }} diff --git a/packages/nc-gui/components/cell/Url.vue b/packages/nc-gui/components/cell/Url.vue index 31d0b99be7..b785332aa5 100644 --- a/packages/nc-gui/components/cell/Url.vue +++ b/packages/nc-gui/components/cell/Url.vue @@ -79,6 +79,10 @@ watch( v-model="vModel" class="outline-none text-sm w-full px-2" @blur="editEnabled = false" + @keydown.down.stop + @keydown.left.stop + @keydown.right.stop + @keydown.up.stop />