Steps to replicate the issue (include links if applicable):
When in editor on nl.wiktionary
- with ULS input tools enabled
- with (in my case) IPA-XSAMPA keyboard selected as preferred alternative keyboard
- click Ctrl-m
What happens?:
- the text <math display="inline"></math> is entered, while also the IPA-keyboard is toggled
What should have happened instead?:
*just the IPA-keyboard should be toggled (this keyboard shortcut is used by [https://www.mediawiki.org/wiki/Help:Extension:UniversalLanguageSelector/Input_methods Universal Language Selector] to
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
*I am aware that English Wikipedia has not enabled ULS, so I can imagine how it was overlooked that ctrl-m is already widely used to enable keyboards in other languages, but in these languages it is probably a more important option than the possibility to enter mathematical formulas.
*I suppose that this new shortcut is connected with the new corresponding button. I guess this will work nearly as well with a different shortcut or even without a shortcut.
Derived Requirement
Ensure that the math insertion keyboard shortcuts do not conflict with shortcuts used by the Universal Language Selector (ULS).
The inline and block math shortcuts must be updated to non-conflicting key combinations, and when ULS input tools are enabled, using the ULS shortcut must not trigger math insertion.
Test Steps
Test Case 1: Ensure updated keyboard shortcut inserts inline math without conflict
- Navigate to an editable page with WikiEditor enabled.
2.C
- Press Cmd + E (Mac) or Ctrl + E (non-Mac).
- Observe the editor content.
- ✅❓❌⬜ AC1: <math display="inline"></math> is inserted and the cursor is placed between the tags.
Test Case 2: Ensure updated keyboard shortcut inserts block math without conflict
- Navigate to an editable page with WikiEditor enabled.
- Ensure ULS input tools are disabled.
- Press Shift + Cmd + E (Mac) or Shift + Ctrl + E (non-Mac).
- Observe the editor content.
- ✅❓❌⬜ AC2: <math display="block"></math> is inserted and the cursor is placed between the tags.
Test Case 3: Ensure ULS shortcut works without triggering math insertion
- Navigate to Beta Meta-Wiki where ULS is enabled.
- Enable ULS input tools.
- Select a preferred alternative keyboard (e.g., IPA-XSAMPA).
- Open the editor on any editable page.
- Press Cmd + M (Mac) or Ctrl + M (non-Mac).
- Observe the behavior.
- ✅❓❌⬜ AC3: Only the ULS keyboard toggles and no <math> tags are inserted.
Test Case 4: Ensure no dual action occurs between ULS and math shortcuts
- Navigate to Beta Meta-Wiki with ULS enabled.
- Enable a ULS input keyboard.
- Open the editor.
- Press Cmd + M (Mac) or Ctrl + M (non-Mac).
- Observe both keyboard state and editor content.
- ✅❓❌⬜ AC4: Only the ULS action occurs and no math insertion is triggered.
Test Case 5: Ensure new math shortcuts work when ULS is enabled
- Navigate to Beta Meta-Wiki with ULS enabled.
- Enable a ULS input keyboard.
- Open the editor.
- Press Cmd + E (Mac) or Ctrl + E (non-Mac).
- Press Shift + Cmd + E (Mac) or Shift + Ctrl + E (non-Mac).
- Observe the editor content.
- ✅❓❌⬜ AC5: Inline and block math tags are inserted correctly without affecting ULS behavior.
QA Results -Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T421333#11817664 |
| 2 | ✅ | T421333#11817664 |
| 3 | ✅ | T421333#11817664 |
| 4 | ✅ | T421333#11817664 |
| 5 | ✅ | T421333#11817664 |






