Skip to content

Conversation

@matthewlipski
Copy link
Collaborator

This PR changes the element type of file blocks' add block button to a button from a div and makes the file panel open on Enter. It also removes the blue border from selected blocks when the editor is not in focus.

@vercel
Copy link

vercel bot commented May 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview May 21, 2024 2:47pm
blocknote-website ✅ Ready (Inspect) Visit Preview May 21, 2024 2:47pm

}
// Checks if key press is Enter
if (event.key === "Enter") {
// Kind of a hacky way to ensure that pressing Enter when a file
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm, this seems a bit hacky. I'm not a proponent of merging this as it makes the codebase worse for a minor win. We should invest more time in finding a cleaner solution (if we want to prioritize this(

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.

3 participants