Details
Description
QKeySequence returns its values as int. This is not correct, it should return QKeyCombination instances.
Observed when turning most IntEnum into Enum.
When inserting QKeyCombination instances instead of coercing them immediately
to int, before the QKeySequence is created, then an unexpected effect happens:
The default for keys is Qt::Key_unknown which is not 0. When encoding a single
Qt::KeyboardModifiers instance without a character, this default is added.
With an integer result shown as unicode, this creates weird nonsense.