plate icon indicating copy to clipboard operation
plate copied to clipboard

Using right arrow key should exit out of inline code markup

Open sepsol opened this issue 4 years ago • 1 comments

Description If I don't have the toolbar and I remove the space after the inline code markup, I have no way to go outside the inline code block on the same line.

Steps

  1. Go to the docs
  2. Scroll down to the bottom of the editor
  3. Try to write something after the inline code markup on the same line, without using the toolbar buttons.

Expectation

The user should be able to use their right arrow key at the very end position inside the inline code markup to either have the current behavior of going to the next existing character, or create a new node with the type of default if there aren't any nodes after the code markup on that line.

Environment

  • slate: 0.63.0
  • slate-react: 0.65.2
  • browser: chrome

sepsol avatar Aug 12 '21 00:08 sepsol

This is a great feature I often use in Slack.

This can be a plugin decoupled from the code plugin to be reused for multiple mark types, that would return onKeyDown handler.

zbeyens avatar Aug 12 '21 02:08 zbeyens