Skip to content

Commit c7e654e

Browse files
Correctly handle row marker offset in onKeyDown (#964)
* fix onKeyDown rowMarkerOffset * push package lock * pull package + package lock from main * remove fixme comment * Revert changes --------- Co-authored-by: lukasmasuch <[email protected]>
1 parent f7ca2e8 commit c7e654e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3337,6 +3337,9 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
33373337
if (onKeyDownIn !== undefined) {
33383338
onKeyDownIn({
33393339
...event,
3340+
...event.location && {
3341+
location: [event.location[0] - rowMarkerOffset, event.location[1]] as any,
3342+
},
33403343
cancel: () => {
33413344
cancelled = true;
33423345
},

0 commit comments

Comments
 (0)