diff --git a/src/calibre/gui2/keyboard.py b/src/calibre/gui2/keyboard.py index 456daae98f..5299f3eb61 100644 --- a/src/calibre/gui2/keyboard.py +++ b/src/calibre/gui2/keyboard.py @@ -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)) # }}}