Skip to content

Ctrl + Backspacing while the diacritic modifier key is activated #7050

@misossoup

Description

@misossoup

Did you clear cache before opening an issue?

  • I have cleared my cache

Is there an existing issue for this?

  • I have searched the existing open and closed issues

Does the issue happen when logged in?

Yes

Does the issue happen when logged out?

Yes

Does the issue happen in incognito mode when logged in?

Yes

Does the issue happen in incognito mode when logged out?

Yes

Account name

misos_soup

Account config

No response

Current Behavior

Here is the issue step by step with screenshots attached:

The issue is around using Ctrl + Backspace after the diacritics modifier key "´" present in Slovak, Czech and other layouts. Expected behaviour is after pressing this key, a diacritic it primed, then the next letter typed will have that diacritic added. On an international keyboard, this key is "=" , so the rightmost key on the number row. Pressing just Backspace after priming the diacritic works correctly, erasing/resetting the diacritic.

For example:

  • Pressing "i" after pressing the diacritics key will print í
  • Pressing "c" after pressing the diacritics key + Shit will print č

You can see the issue via the 3 attached screenshots:

  1. The diacritics key is primed, which is shown by underlining the next letter.
  2. Now this is the issue, Ctrl + Backspace is pressed, but instead of erasing the whole word, there is a leftover invisible character. We'd have to press Backspace again to remove this invisible character.
  3. As you can see, typing "C", which is the first letter of this word, registers as an error, due to the invisible character.

I'm guessing that the issue has something to do with this key being a dead key, but I'll leave that to you smart guys.

Image Image Image

Expected Behavior

I'll reference my 3 screenshots again, to describe what should happen

  1. The diacritics key is primed, which is shown by underlining the next letter.
  2. Ctrl + Backspace is pressed, which erases the whole word with no leftover invisible characters, and also resets the fact that we have a diacritic primed (if that's even possible), or pressing Ctrl + Backspace simply works the same as just Backspace, deletes the primed diacritic, which is the way it usually works.
  3. Typing "C", which is the first letter of this word, registers as a valid key press and not an error

Steps To Reproduce

  1. Select a keyboard layout with the diacritic modifier key "´", for example, Slovak or Czech
  2. During a test, press at least one normal key and then the modifier key.
  3. Press Ctrl + Backspace and you'll see the first letter of the word change to an invisible character

Note: If we press the diacritic modifier key at the beginning of the word, then we can't erase it - in the screenshot with "pár" I'm spamming Backspace and nothing happens. The only way to erase it, is to type a random letter, which will add a diacritic to it, and then erase this letter with Backspace as normal.

Another note: Also tested it in Firefox (everything before was in Chrome), the issue is there but behaves differently. Here's what happens in reference to the two screenshots attached:

  1. The diacritics key is primed, which is shown by underlining the next letter. (screenshot with "point")
  2. Pressing Backspace or Ctrl + Backspace, instead of erasing anything, now types the next letter of the word. Weirdly even though the letter it typed is visually correct, it registers as an error. (screenshot with "point" and the "i" in red)
Image Image Image

Environment

  • OS: Win 11
  • Browser: Chrome, Firefox
  • Browser Version: Chrome Version 141.0.7390.123, Firefox version 143.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcan't reproduceWe can't replicate this, might be environment specific

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions