Skip to content

Opened Link popover component changes position when pressing Bold or Italic keyboard shortcut  #23799

Closed

Description

@ObliviousHarmony

Describe the bug
If the bold hotkey is pressed while the link popover component is open it causes it to move positions in a strange way. In 8.4 it floats off into the distance and in 8.5 if shifts position once.

To reproduce
Steps to reproduce the behavior:

  1. Open the block editor
  2. Select some text
  3. Open the link popover
  4. Press the ⌘B hotkey

Expected behavior
My first thought is that perhaps you shouldn't be able to use the hotkey while the link popover is active. I was also thinking it might just move more appropriately but I don't think this is a common situation in the first place.

Screenshots
8.4: https://d.pr/i/sGotGK
8.5: https://d.pr/i/JV3ppx

Editor version (please complete the following information):

  • WordPress version: 5.4.2
  • Default Editor
  • Also tested with 8.5

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome
  • Version: 83

Activity

  1. added
    [Feature] Link Editing
    Needs Testing
    on Jul 9, 2020
  2. ntsekouras commented on Jul 9, 2020

    @ntsekouras
    Contributor

    Hey @ObliviousHarmony -- thanks for reporting this! I reproduced it and can confirm it's a bug.

    This is happening when pressing the shortcut for italics as well.

  3. added
    [Type] Bug
    and removed
    Needs Testing
    on Jul 9, 2020
  4. changed the title [-]Pressing ⌘B hotkey moves link popover component[/-] [+]Opened Link popover component changes position when pressing Bold or Italic keyboard shortcut [/+] on Jul 9, 2020
  5. added
    [Feature] Rich Text
    on Jul 9, 2020
  6. kathrynwp commented on Aug 4, 2022

    @kathrynwp

    Hi @ObliviousHarmony @ntsekouras I haven't been able to replicate this anymore, either with command-b or command-i.

    When using those hotkeys with the link popover active in Chrome, nothing happens, as expected. (That said, the Droplr screenshot links no longer work so I can't confirm 100% what I should be looking for!)

    Tested with:

    WordPress 6.0.1
    Gutenberg 13.8.0 active or inactive
    No other plugins active

    Chrome 104.0.5112.79
    macOS 12.2.1

    I'm going to go ahead and close this out, but if anyone is still experiencing the original issue, feel free to add a comment with additional details and I’ll be glad to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Link Editing[Feature] Rich Text[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions