|
|
@ -226,6 +226,8 @@ const { isCellSelected, activeCell, handleMouseDown, handleMouseOver, handleCell |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (cmdOrCtrl) { |
|
|
|
if (cmdOrCtrl) { |
|
|
|
|
|
|
|
if (activeCell.row === null || isNaN(activeCell.row) || activeCell.col === null || isNaN(activeCell.col)) return |
|
|
|
|
|
|
|
|
|
|
|
switch (e.key) { |
|
|
|
switch (e.key) { |
|
|
|
case 'ArrowUp': |
|
|
|
case 'ArrowUp': |
|
|
|
e.preventDefault() |
|
|
|
e.preventDefault() |
|
|
@ -674,8 +676,7 @@ const closeAddColumnDropdown = () => { |
|
|
|
<thead ref="tableHead"> |
|
|
|
<thead ref="tableHead"> |
|
|
|
<tr class="nc-grid-header border-1 bg-gray-100 sticky top[-1px]"> |
|
|
|
<tr class="nc-grid-header border-1 bg-gray-100 sticky top[-1px]"> |
|
|
|
<th data-testid="grid-id-column"> |
|
|
|
<th data-testid="grid-id-column"> |
|
|
|
<div class="w-full h-full bg-gray-100 flex min-w-[70px] pl-5 pr-1 items-center" |
|
|
|
<div class="w-full h-full bg-gray-100 flex min-w-[70px] pl-5 pr-1 items-center" data-testid="nc-check-all"> |
|
|
|
data-testid="nc-check-all"> |
|
|
|
|
|
|
|
<template v-if="!readOnly"> |
|
|
|
<template v-if="!readOnly"> |
|
|
|
<div class="nc-no-label text-gray-500" :class="{ hidden: selectedAllRecords }">#</div> |
|
|
|
<div class="nc-no-label text-gray-500" :class="{ hidden: selectedAllRecords }">#</div> |
|
|
|
<div |
|
|
|
<div |
|
|
@ -897,8 +898,7 @@ const closeAddColumnDropdown = () => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-menu-item> |
|
|
|
</a-menu-item> |
|
|
|
|
|
|
|
|
|
|
|
<a-menu-item v-if="contextMenuTarget" data-testid="context-menu-item-copy" |
|
|
|
<a-menu-item v-if="contextMenuTarget" data-testid="context-menu-item-copy" @click="copyValue(contextMenuTarget)"> |
|
|
|
@click="copyValue(contextMenuTarget)"> |
|
|
|
|
|
|
|
<div v-e="['a:row:copy']" class="nc-project-menu-item"> |
|
|
|
<div v-e="['a:row:copy']" class="nc-project-menu-item"> |
|
|
|
<!-- Copy --> |
|
|
|
<!-- Copy --> |
|
|
|
{{ $t('general.copy') }} |
|
|
|
{{ $t('general.copy') }} |
|
|
|