Skip to content

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

Merged
czgu merged 2 commits into
pinterest:masterfrom
czgu:shortcut
Dec 21, 2022
Merged

feat: Add shortcut for toggle ToC, update datadoc short cuts#1107
czgu merged 2 commits into
pinterest:masterfrom
czgu:shortcut

Conversation

@czgu

@czgu czgu commented Dec 21, 2022

Copy link
Copy Markdown
Collaborator
  • 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
Copy Markdown
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
Copy Markdown
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