Page MenuHomePhabricator

BÉPO keyboard: classic AZERTY shortcuts don’t work anymore
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Copy text (Ctrl+C)
  • Paste text (Ctrl+V)

What happens?:
When I am in wikitext editor, with the BÉPO activated, if I press CTRL+V, it adds the tags <sup></sup> instead of pasting. This only happens in the wikitext. The search bar works correctly, the Wikisource Index page form works correctly, the summary input works correctly.

This bug happened for the first time multiple months ago, I can’t tell the exact date. I’m not sure if it’s related, but I seem to remember that it appeared when we switched to Parsoid, if that can help.

What should have happened instead?:
It should paste my clipboard content.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
OS: Windows 11
Browser: Firefox 147.0.3
BÉPO: bépo 1.1 ctrl azerty (which allows me to keep the traditional AZERTY shortcuts)

Event Timeline

with the BÉPO activated

How to do that?

I have a hard time to imagine that this is related to the MediaWiki software itself, as your web browser takes that input form your keyboard. Does this problem also happen with a different browser software?

After installing BÉPO, I press Ctrl + Shift to switch between bépo and azerty. Or in the bottom right corner of Windows, by clicking on the language selector and selecting "Français (France) bépo 1.1 ctrl azerty"

I just tried on Chrome, Edge and Firefox with private browsing. I try without being logged. In all cases, I cannot paste using Ctrl+V. I try for each of them to paste on the wiki search bar and it pasted my clipboard content.

I’ve looked at the events added to the textarea element. I found some handlers in the closure of jquery.wikiEditor.toolbar.js. After a bit of research, I think this is the commit responsible for the behaviour change: https://phabricator.wikimedia.org/rEWEDa700e9f2d8e140d560457203acfd9f561dde6a53.

An important info: in bépo, the V key on the azerty keyboard write a '.' character.