|
|
|
@ -162,7 +162,6 @@ const getContainerScrollForElement = (
|
|
|
|
|
return scroll |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { selectCell, selectBlock, selectedRange, clearRangeRows, startSelectRange, selected } = useMultiSelect( |
|
|
|
|
fields, |
|
|
|
|
data, |
|
|
|
@ -183,13 +182,18 @@ const { selectCell, selectBlock, selectedRange, clearRangeRows, startSelectRange
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const cmdOrCtrl = isMac() ? e.metaKey : e.ctrlKey |
|
|
|
|
if (e.code === 'Space') { |
|
|
|
|
if (e.key === ' ') { |
|
|
|
|
if (selected.row !== null && !editEnabled) { |
|
|
|
|
e.preventDefault() |
|
|
|
|
const row = data.value[selected.row] |
|
|
|
|
expandForm(row) |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
} else if (e.key === 'Escape') { |
|
|
|
|
if (editEnabled) { |
|
|
|
|
editEnabled = false |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (cmdOrCtrl) { |
|
|
|
|
switch (e.key) { |
|
|
|
|