Skip to content

Commit

Permalink
feat: Add cell selection in data browser on space bar touch down (#2661)
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy authored Mar 3, 2025
1 parent 58b38f8 commit 9d623a9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/dashboard/Data/Browser/DataBrowser.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,15 @@ export default class DataBrowser extends React.Component {
e.preventDefault();
}
break;
case 32: // Space
// Only handle space if not editing and there's a current row selected
if (!this.state.editing && this.state.current?.row >= 0) {
const rowId = this.props.data[this.state.current.row].id;
const isSelected = this.props.selection[rowId];
this.props.selectRow(rowId, !isSelected);
e.preventDefault();
}
break;
}
}

Expand Down

0 comments on commit 9d623a9

Please sign in to comment.