gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Pressing Arrow Down Button On Keyboard Make Caption Field Longer On Image Block

Open achmedislamic opened this issue 7 years ago • 3 comments

Describe the bug When you using Image Block, there is a caption field below the image. When you press the arrow down button on your keyboard, the image block becoming longer.

To Reproduce Steps to reproduce the behavior:

  1. Add or edit post using Gutenberg Editor
  2. Insert image
  3. Click the caption field
  4. Press the arrow down button on your keyboard

Expected behavior The cursor should go to the next block

Screenshots bug-caption-wordpress-gutenberg

Desktop (please complete the following information):

  • OS: Windows 10 October 2018 Update
  • Browser: Google Chrome
  • Version 72

Additional context

  • Latest Wordpress 5.1
  • Using PHP 7.3.2

achmedislamic avatar Feb 26 '19 12:02 achmedislamic

@iseulde any idea about this. I feel I saw something related to this recently in one of your PRs.

youknowriad avatar Feb 27 '19 13:02 youknowriad

We've never had any logic for this in the image block I think. I'll have a look.

ellatrix avatar Feb 27 '19 15:02 ellatrix

What should the behaviour here be? Should we break out only when the caret is at the end and enter is pressed twice? Or should this only happen in the middle of the text?

ellatrix avatar Feb 27 '19 15:02 ellatrix