Skip to content

Commit fa11243

Browse files
author
christopherbrookes
committed
fix: Allow other key binding while adding new row
1 parent cf3e1f7 commit fa11243

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ export default class DataBrowser extends React.Component {
159159
this.props.onAbortAddRow();
160160
e.preventDefault();
161161
}
162-
return;
163162
}
164163
if (this.state.editing) {
165164
switch (e.keyCode) {
@@ -228,6 +227,8 @@ export default class DataBrowser extends React.Component {
228227
e.preventDefault();
229228
break;
230229
case 67: // C
230+
console.log(e.ctrlKey, e.metaKey);
231+
console.log('tototo', this.state.copyableValue)
231232
if ((e.ctrlKey || e.metaKey) && this.state.copyableValue !== undefined) {
232233
copy(this.state.copyableValue); // Copies current cell value to clipboard
233234
if (this.props.showNote) {

0 commit comments

Comments
 (0)