[macos] Letters double while typing with diacritics

When typing on macos with diacritics (long press key โ†’ press number key to select letter), the letters double resulting this:
Screenshot 2023-02-14 at 22.15.18

Anki 2.1.57 (6b7d372c) Python 3.9.15 Qt 6.3.2 PyQt 6.3.1
Platform: macOS-13.2.1-x86_64-i386-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-02-14 11:03:40


===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
'' ['srpskilatcyr', 0, 'None', '']
AJT Browser Play Button ['182970692', 2023-01-18T00:38, 'None', '']
AJT Furigana ['1344485230', 2022-06-28T01:52, 'None', mod]
AJT Merge Notes ['1425504015', 2023-01-18T00:42, 'None', mod]
AJT Mortician ['1255924302', 2023-01-07T05:44, 'None', mod]
AJT Pitch Accent ['1225470483', 2022-01-04T21:33, 'None', mod]
Advanced Copy Fields ['1898445115', 2019-05-03T20:46, 'None', '']
AnkiConnect ['2055492159', 2022-09-19T02:11, 'None', '']
Cross Profile Search and Import 20 ['1772763629', 2023-01-18T00:36, 'None', mod]
DeepL Translator ['972129549', 2022-07-31T00:16, '1.0.0', mod]
Fix invalid card IDs ['196231552', 2021-11-26T02:33, 'None', '']
Learn now  Grade now ['1021636467', 2022-12-13T14:13, 'None', '']
Paste Images As WebP ['1151815987', 2023-01-18T00:33, 'None', mod]
Quick Colour Changing ['2491935955', 2022-07-24T06:29, 'None', '']
RefoldEase ['819023663', 2023-01-05T01:00, 'None', mod]
Remove card history ['2089200096', 2018-04-23T08:50, 'None', '']
Review Heatmap ['1771074083', 2022-06-30T03:43, 'None', '']
True Retention ['613684242', 2017-11-19T21:43, 'None', '']
anki-forvo-dl - Forvo Pronunciation Downloader fully automatic ['858591644', 2022-07-31T13:26, 'None', '']

===IDs of active AnkiWeb add-ons===
1021636467 1151815987 1225470483 1255924302 1344485230 1425504015 1771074083 1772763629 182970692 1898445115 196231552 2055492159 2089200096 2491935955 613684242 819023663 858591644 972129549

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

https://docs.ankiweb.net/editing.html#inputting-foreign-characters-and-accents

The toolkit on which Anki is built has trouble dealing with a few input methods, such as holding down keys to select accented characters on macOS

Is it as issue with PyQt or Qt? Telegram Desktop is built on Qt6, and input there works fine.

Telegram may not be using a webview.