diff --git a/src/configs/hotkey.ts b/src/configs/hotkey.ts index cd32fb5c..43fcfff4 100644 --- a/src/configs/hotkey.ts +++ b/src/configs/hotkey.ts @@ -84,6 +84,12 @@ export const HOTKEY_DOC = [ { label: '在右侧插入一列', value: 'Ctrl + →' }, ], }, + { + type: '图表数据编辑', + children: [ + { label: '聚焦到下一行', value: 'Enter' }, + ], + }, { type: '文本编辑', children: [ diff --git a/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ChartDataEditor.vue b/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ChartDataEditor.vue index 4ae3820e..dd666fc0 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ChartDataEditor.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ChartDataEditor.vue @@ -29,6 +29,7 @@ :class="['item', { 'selected': rowIndex <= selectedRange[1] && colIndex <= selectedRange[0] }]" :id="`cell-${rowIndex - 1}-${colIndex - 1}`" autocomplete="off" + @focus="focusCell = [rowIndex - 1, colIndex - 1]" > @@ -44,8 +45,9 @@