Skip to content

Commit dadf093

Browse files
committed
fix onKeyDown rowMarkerOffset
1 parent 0ac1a81 commit dadf093

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/core/src/data-editor/data-editor.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -3321,7 +3321,10 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
33213321
let cancelled = false;
33223322
if (onKeyDownIn !== undefined) {
33233323
onKeyDownIn({
3324-
...event,
3324+
...event, // FIXME: Mutate
3325+
...event.location && {
3326+
location: [event.location[0] - rowMarkerOffset, event.location[1]] as any,
3327+
},
33253328
cancel: () => {
33263329
cancelled = true;
33273330
},

0 commit comments

Comments
 (0)