mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a regression in the previous release that broke creating new keyboard shortcuts
This commit is contained in:
parent
59a732d181
commit
631bb7652f
@ -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))
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user