Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add shortcut for toggle ToC, update datadoc short cuts #1107

Merged
merged 2 commits into from
Dec 21, 2022

Conversation

czgu
Copy link
Collaborator

@czgu czgu commented Dec 21, 2022

  • Added Alt+T to toggle ToC within a DataDoc
  • Changed copy/paste/delete shortcut from Alt-Shift to just Alt

@czgu czgu requested a review from jczhong84 December 21, 2022 02:15
@czgu czgu marked this pull request as ready for review December 21, 2022 02:15
const { dataDoc, docId } = this.props;

const numberOfCells = dataDoc.dataDocCells.length;
const cell = dataDoc.dataDocCells[index];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible that index is out of range and make cell be undefined?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't happen, the focusedIndex can't be cell out of index. If the delete is issued by the cell directly, it should always be valid

@czgu czgu merged commit 6bbbc8f into pinterest:master Dec 21, 2022
@czgu czgu deleted the shortcut branch December 21, 2022 18:49
rohan-sh1 pushed a commit to CAI-TECHNOLOGIES/cai-ext-db-explorer that referenced this pull request Feb 28, 2023
…st#1107)

* feat: Add shortcut for toggle ToC, update datadoc short cuts

* added shortcut in tooltip
aidenprice pushed a commit to arrowtail-precision/querybook that referenced this pull request Jan 3, 2024
…st#1107)

* feat: Add shortcut for toggle ToC, update datadoc short cuts

* added shortcut in tooltip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants