Browse Source

fix(gui): allow drag select, mouse select and cmd/ctrl + a select

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4544/head
Pranav C 2 years ago
parent
commit
a8f421f22b
  1. 2
      packages/nc-gui/components/cell/Currency.vue
  2. 2
      packages/nc-gui/components/cell/Decimal.vue
  3. 2
      packages/nc-gui/components/cell/Duration.vue
  4. 2
      packages/nc-gui/components/cell/Email.vue
  5. 2
      packages/nc-gui/components/cell/Float.vue
  6. 2
      packages/nc-gui/components/cell/Integer.vue
  7. 2
      packages/nc-gui/components/cell/Percent.vue
  8. 2
      packages/nc-gui/components/cell/Text.vue
  9. 2
      packages/nc-gui/components/cell/TextArea.vue
  10. 2
      packages/nc-gui/components/cell/Url.vue

2
packages/nc-gui/components/cell/Currency.vue

@ -66,6 +66,8 @@ onMounted(() => {
@keydown.right.stop
@keydown.up.stop
@keydown.delete.stop
@selectstart.capture.stop
@mousedown.stop
/>
<span v-else-if="vModel">{{ currency }}</span>

2
packages/nc-gui/components/cell/Decimal.vue

@ -35,6 +35,8 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus()
@keydown.right.stop
@keydown.up.stop
@keydown.delete.stop
@selectstart.capture.stop
@mousedown.stop
/>
<span v-else class="text-sm">{{ vModel }}</span>
</template>

2
packages/nc-gui/components/cell/Duration.vue

@ -89,6 +89,8 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus()
@keydown.right.stop
@keydown.up.stop
@keydown.delete.stop
@selectstart.capture.stop
@mousedown.stop
/>
<span v-else> {{ localState }}</span>

2
packages/nc-gui/components/cell/Email.vue

@ -35,6 +35,8 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus()
@keydown.right.stop
@keydown.up.stop
@keydown.delete.stop
@selectstart.capture.stop
@mousedown.stop
/>
<a v-else-if="validEmail" class="text-sm underline hover:opacity-75" :href="`mailto:${vModel}`" target="_blank">

2
packages/nc-gui/components/cell/Float.vue

@ -35,6 +35,8 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus()
@keydown.right.stop
@keydown.up.stop
@keydown.delete.stop
@selectstart.capture.stop
@mousedown.stop
/>
<span v-else class="text-sm">{{ vModel }}</span>
</template>

2
packages/nc-gui/components/cell/Integer.vue

@ -39,6 +39,8 @@ function onKeyDown(evt: KeyboardEvent) {
@keydown.right.stop
@keydown.up.stop
@keydown.delete.stop
@selectstart.capture.stop
@mousedown.stop
/>
<span v-else class="text-sm">{{ vModel }}</span>
</template>

2
packages/nc-gui/components/cell/Percent.vue

@ -33,6 +33,8 @@ const focus: VNodeRef = (el) => {
@keydown.right.stop
@keydown.up.stop
@keydown.delete.stop
@selectstart.capture.stop
@mousedown.stop
/>
<span v-else>{{ vModel }}</span>
</template>

2
packages/nc-gui/components/cell/Text.vue

@ -34,6 +34,8 @@ const focus: VNodeRef = (el) => {
@keydown.right.stop
@keydown.up.stop
@keydown.delete.stop
@selectstart.capture.stop
@mousedown.stop
/>
<span v-else>{{ vModel }}</span>

2
packages/nc-gui/components/cell/TextArea.vue

@ -31,6 +31,8 @@ const focus: VNodeRef = (el) => (el as HTMLTextAreaElement)?.focus()
@keydown.right.stop
@keydown.up.stop
@keydown.delete.stop
@selectstart.capture.stop
@mousedown.stop
/>
<span v-else>{{ vModel }}</span>

2
packages/nc-gui/components/cell/Url.vue

@ -84,6 +84,8 @@ watch(
@keydown.right.stop
@keydown.up.stop
@keydown.delete.stop
@selectstart.capture.stop
@mousedown.stop
/>
<nuxt-link

Loading…
Cancel
Save