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

Enter key on caption doesn't go to the next block #4

Open
codeKonami opened this issue Jan 6, 2017 · 1 comment
Open

Enter key on caption doesn't go to the next block #4

codeKonami opened this issue Jan 6, 2017 · 1 comment

Comments

@codeKonami
Copy link
Contributor

When I upload an image and edit the caption, I'd naturally use the enter key to go the next block but it doesn't do anything.

Thanks for this great editor!

@svnm
Copy link
Member

svnm commented Jan 10, 2017

This would be a good feature, I think we would just need to detect the keyDown on the Input component, and then set the selection. Will just have to look at the logic for setting selection at a new block.

  onKeyDown (event) {
    if (event.key === 'Enter') {
      event.preventDefault()
     /* now set to a new block */
    }
  }

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

No branches or pull requests

2 participants