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

Can't exit preformatted block even if I press Esc #13380

Closed
CalumChilds opened this issue Jan 20, 2019 · 8 comments
Closed

Can't exit preformatted block even if I press Esc #13380

CalumChilds opened this issue Jan 20, 2019 · 8 comments
Labels
[Block] Preformatted Affects the Preformatted Block - used for showing preformatted text [Feature] Blocks Overall functionality of blocks [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... Needs Testing Needs further testing to be confirmed.

Comments

@CalumChilds
Copy link

Describe the bug
I cannot get out of the Preformatted block by pressing Enter or the Down key - and even pressing Esc doesn't work.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new post/page.
  2. Create a preformatted block.
  3. Type something.
  4. Press Enter or down key.

Expected behavior
I was expecting to be able to exit the Preformatted block using the Esc key.
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Firefox
  • Version 64.0.2

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

  • I am using WordPress 5.0.3
@aduth aduth added [Feature] Blocks Overall functionality of blocks [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... labels Jan 21, 2019
@aduth
Copy link
Member

aduth commented Jan 21, 2019

Can you clarify what "get out" means to you?

I would not expect Enter to leave the block, as one of the primary purposes of the Preformatted block is to preserve line breaks verbatim.

ArrowDown works for me in my testing (Firefox, Windows 10). Can you elaborate:

  • Where is the cursor position for you after pressing the button?
  • What is the contents of the block?
  • What is the next block, if applicable?

@aduth aduth added the [Status] Needs More Info Follow-up required in order to be actionable. label Jan 21, 2019
@CalumChilds
Copy link
Author

CalumChilds commented Jan 21, 2019

This video emulates what I did in order to find that bug:
(At the time, I entered the content "ballyhoo();" before pressing the down key, expecting for the focus to exit that block.)

@aduth
Copy link
Member

aduth commented Jan 21, 2019

Are you able to reproduce on a fresh site, like one created via jurassic.ninja ?

I'm curious if there is a plugin/theme interoperability issue at play here.

@CalumChilds
Copy link
Author

CalumChilds commented Jan 22, 2019

I just tried it on jurassic.ninja and I got the same result video. I tried it again without Jetpack and it still didn't change block.
(Another question: Is there any easy way of uploading the videos to Github for free?)

@designsimply
Copy link
Member

Another question: Is there any easy way of uploading the videos to Github for free?

Not that I know of for videos! If you can make a short enough animated GIF though, those can be uploaded directly to GitHub. For videos, I have been using https://cloudup.com/.

@designsimply designsimply added Needs Testing Needs further testing to be confirmed. and removed [Status] Needs More Info Follow-up required in order to be actionable. labels Jan 25, 2019
@ellatrix
Copy link
Member

Related: #14114.

@ellatrix ellatrix added [Block] Preformatted Affects the Preformatted Block - used for showing preformatted text [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... and removed [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... labels Feb 28, 2019
@oxyc
Copy link
Member

oxyc commented Jun 20, 2020

Tested using the master branch of Gutenberg and currently both esc and down arrow exits the block. I also tested on jurassic.ninja where it works. @Wingo5315 could you check if it works and it's okay to close this issue?

@annezazu
Copy link
Contributor

As an update with WordPress 5.5.1 and Gutenberg 9.0, hitting escape leads to this view where one is able to select the overall block:
Screen Shot 2020-09-23 at 9 04 49 PM

On the flip side, using the up or down arrow completely removes you from the block:

arrows

From there, I viewed both pressing enter (stays preformatted) vs down key (creates a new paragraph block):

enter vs down key

@Wingo5315 I'm closing this out for now as a result but welcome your feedback if you believe this is closed incorrectly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Preformatted Affects the Preformatted Block - used for showing preformatted text [Feature] Blocks Overall functionality of blocks [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... Needs Testing Needs further testing to be confirmed.
Projects
None yet
Development

No branches or pull requests

6 participants