Fix a regression in the previous release that broke creating new keyboard shortcuts

This commit is contained in:
Kovid Goyal 2021-12-06 20:13:39 +05:30
parent 59a732d181
commit 631bb7652f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -43,7 +43,7 @@ def keysequence_from_event(ev): # {{{
# Something like Shift+* or Shift+> we have to remove the shift, # Something like Shift+* or Shift+> we have to remove the shift,
# since it is included in keycode. # since it is included in keycode.
mods = mods & ~Qt.KeyboardModifier.ShiftModifier mods = mods & ~Qt.KeyboardModifier.ShiftModifier
return QKeySequence(k | mods) return QKeySequence(k | int(mods))
# }}} # }}}