Skip to content

Commit 9d623a9

Browse files
authored
feat: Add cell selection in data browser on space bar touch down (parse-community#2661)
1 parent 58b38f8 commit 9d623a9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/dashboard/Data/Browser/DataBrowser.react.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,15 @@ export default class DataBrowser extends React.Component {
419419
e.preventDefault();
420420
}
421421
break;
422+
case 32: // Space
423+
// Only handle space if not editing and there's a current row selected
424+
if (!this.state.editing && this.state.current?.row >= 0) {
425+
const rowId = this.props.data[this.state.current.row].id;
426+
const isSelected = this.props.selection[rowId];
427+
this.props.selectRow(rowId, !isSelected);
428+
e.preventDefault();
429+
}
430+
break;
422431
}
423432
}
424433

0 commit comments

Comments
 (0)