Browse Source

fix(nc-gui): PR review changes

pull/7751/head
Ramesh Mane 10 months ago
parent
commit
9550b5ce19
  1. 2
      packages/nc-gui/components/virtual-cell/components/ListChildItems.vue
  2. 4
      packages/nc-gui/components/virtual-cell/components/ListItems.vue

2
packages/nc-gui/components/virtual-cell/components/ListChildItems.vue

@ -188,7 +188,7 @@ const linkedShortcuts = (e: KeyboardEvent) => {
try {
e.target?.previousElementSibling?.focus()
} catch (e) {}
} else if (e.key !== 'Tab' && e.key !== 'Shift' && e.key !== 'Enter' && e.key !== ' ') {
} else if (!expandedFormDlg.value && e.key !== 'Tab' && e.key !== 'Shift' && e.key !== 'Enter' && e.key !== ' ') {
try {
filterQueryRef.value?.focus()
} catch (e) {}

4
packages/nc-gui/components/virtual-cell/components/ListItems.vue

@ -230,6 +230,10 @@ const linkedShortcuts = (e: KeyboardEvent) => {
try {
e.target?.previousElementSibling?.focus()
} catch (e) {}
} else if (!expandedFormDlg.value && e.key !== 'Tab' && e.key !== 'Shift' && e.key !== 'Enter' && e.key !== ' ') {
try {
filterQueryRef.value?.focus()
} catch (e) {}
}
}

Loading…
Cancel
Save