View Single Post
Old 12-09-2021, 09:36 AM   #1
firsikov
Junior Member
firsikov began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2021
Device: Kindle Voyager
[error] macOS - Calibre settings - Keyboard shortcut

Hi.

I trying to assign a keyboard shortcut to function "Add to library by folder and subfolders", but getting that error:

<b>TypeError</b>:unsupported operand type(s) for |: 'int' and 'KeyboardModifiers'

Code:
calibre 5.33.2  embedded-python: True is64bit: True
macOS-10.16-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '20.6.0', 'Darwin Kernel Version 20.6.0: Tue Oct 12 18:33:42 PDT 2021; root:xnu-7195.141.8~1/RELEASE_X86_64')
Python 3.8.5
OSX: ('10.16', ('', '', ''), 'x86_64')
Interface language: uk
Successfully initialized third party plugins: CalibreSpy (1, 0, 84) && Category Tags (0, 1, 2) && Diaps Editing Toolbag (0, 3, 7) && EpubMerge (2, 11, 0) && Ex Libris (1, 0, 19) && Find Duplicates (1, 8, 10) && Goodreads (1, 5, 1) && Goodreads More Tags (1, 2, 1) && Goodreads Sync (1, 15, 1) && LubimyCzytac (2, 2, 6) && Modify ePub (1, 6, 3) && OPDS Client (1, 0, 0) && Wikidata (2, 0, 0) && Wikidata gui (2, 0, 0)
Traceback (most recent call last):
  File "calibre/gui2/keyboard.py", line 492, in eventFilter
  File "calibre/gui2/keyboard.py", line 499, in key_press_event
  File "calibre/gui2/keyboard.py", line 46, in keysequence_from_event
TypeError: unsupported operand type(s) for |: 'int' and 'KeyboardModifiers'
Perhaps someone has encountered a similar error and knows how to solve it.
firsikov is offline   Reply With Quote