Editor loses accents capability

AI-generated summary

In the Support category, hellekin reports that since Discourse 2.3.0.beta9, the editor occasionally loses the ability to type accented characters using composite keyboard layouts (e.g., Spanish), though pasting them still works. The cursor also disappears intermittently. No console errors appear, only a deprecation warning about “removing all listeners.” zogstrip asks for reproduction steps, and hellekin confirms the issue occurs when replying using a composite keyboard. zogstrip successfully types accented characters (ñ, é, è, à, ê) on Windows 10 with Firefox’s “ENG INTL” layout. hellekin notes they’re on GNU/Linux with Firefox 60.6.2esr and have seen the issue on another distro with the same version. zogstrip recommends upgrading to Firefox 66.0.5. hellekin tests with Firefox 66.0.5 downloaded from mozilla.org and observes the issue no longer occurs, suggesting the bug was fixed in a later Firefox version.

Context

  • Firefox
  • Composite keyboard character map

Symptoms

  • Lost cursor
  • Accented characters do not appear

Description

Since 2.3.0.beta9, the editor sometimes loses the capability to write some accented characters, which becomes very annoying. Pasting accented texts work, which provides a temporary workaround.

When first loaded, the editor works fine, but at some point (which remains unclear) he cursor disappears and the accented characters cannot be inserted anymore from the keyboard. The bug appears in Firefox with composite character maps (e.g., the Spanish map where an accented character can be inserted by typing the diacritic then the letter).

The console does not throw an error. There’s a deprecation warning on “removing all listeners” which may or may not be related.

Can you reproduce here? What are the exact reproduction steps?

Writing test with accents and the Spanish keyboard: ñ works, but not é, è, à, or ê. (in HTML: é, è, or à, or ê.)

To reproduce:

  1. switch to a composite keyboard
  2. reply to this topic.

I’m writing these characters: ñ, é, è, à and ê on latest FF using “composite keyboard” (eg. “ENG INTL”) on latest Windows 10.

I’m on GNU/Linux with Firefox 60.6.2esr. I’ve seen this bug on another distro with the same Firefox version.

Latest version is 66.0.5. Can you please update and try again?

Test with Firefox 66.0.5 downloaded from mozilla.org. There must be a bug that has been fixed since then.