Also ensure insert special character normalizes to NFC

This commit is contained in:
Kovid Goyal 2025-08-21 09:37:13 +05:30
parent 8ed750302a
commit 03a38da996
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -6,6 +6,7 @@ __copyright__ = '2014, Kovid Goyal <kovid at kovidgoyal.net>'
import re
import textwrap
import unicodedata
from bisect import bisect
from functools import partial
@ -843,7 +844,7 @@ class CharSelect(Dialog):
self.parent().activateWindow()
w = self.parent().focusWidget()
e = QInputMethodEvent('', [])
e.setCommitString(c)
e.setCommitString(unicodedata.normalize('NFC', c))
if hasattr(w, 'no_popup'):
oval = w.no_popup
w.no_popup = True