Skip to content

Add Enter.key detection to More blocks#332

Merged
daniloercoli merged 2 commits intomasterfrom
add/enter-handling-more-block
Dec 6, 2018
Merged

Add Enter.key detection to More blocks#332
daniloercoli merged 2 commits intomasterfrom
add/enter-handling-more-block

Conversation

@daniloercoli
Copy link
Copy Markdown
Contributor

This PR adds a simple logic for Enter.key detection in the More block.
The new logic adds a new default empty block after the current - same of the web side logic - regardless of the caret position.

To test:

  • Start the demo app
  • Put the caret somewhere in the more block
  • Tap enter on the soft keyboard, or on the hw keyboard
  • It should add a new empty (para) block after the current

@daniloercoli daniloercoli merged commit 29d5815 into master Dec 6, 2018
@daniloercoli daniloercoli deleted the add/enter-handling-more-block branch December 6, 2018 19:37
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