mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-30 16:05:27 +01:00
Fix a regression in the previous release that broke creating new keyboard shortcuts
This commit is contained in:
parent
59a732d181
commit
631bb7652f
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ def keysequence_from_event(ev): # {{{
|
|||
# Something like Shift+* or Shift+> we have to remove the shift,
|
||||
# since it is included in keycode.
|
||||
mods = mods & ~Qt.KeyboardModifier.ShiftModifier
|
||||
return QKeySequence(k | mods)
|
||||
return QKeySequence(k | int(mods))
|
||||
# }}}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue