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

fix(notebook-cell): prevent shift+enter action in cell editor #2226

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

bsahitya
Copy link
Collaborator

Description

  • Prevent the default action in notebook cell's code editor on pressing Shift + Enter keys. The current behavior adds a new line below. This should not happen.
  • Consumers can now capture the document's key events and handle the logic for Shift + Enter key press.

What's included?

  • Do nothing on pressing Shift + Enter while focused in the code editor

Test Steps

  • npm run start
  • Open the Notebook cell story
  • Focus in the editor and press Shift + Enter. Nothing should happen.

General Tests for Every PR

  • npm run start still works.
  • npm run lint passes.
  • npm run stylelint passes.
  • npm test passes and code coverage is not lower.
  • npm run build still works.
Screenshots or link to StackBlitz/Plunker
Screen.Recording.2024-08-19.at.1.25.22.PM.mov

@owilliams320 owilliams320 merged commit 9e299e4 into main Aug 19, 2024
7 checks passed
@owilliams320 owilliams320 deleted the fix/notebook-cell branch August 19, 2024 21:04
@owilliams320
Copy link
Collaborator

🎉 This PR is included in version 8.20.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants