View Single Post
Old 05-26-2023, 04:33 PM   #1087
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by DaltonST View Post
You might ask him how he enabled 'K', given the above. I guess it could have been made a transient override that only exists when the Book Details are open; if so, it would not be in the official shortcuts source, meaning that the JS Tool cannot show it.

DaltonST
It uses the standard action shortcut API, same as save_to_disk, view and several others. File show_book_details.py.
Code:
class ShowBookDetailsAction(InterfaceAction):

    name = 'Show Book Details'
    action_spec = (_('Book details'), 'dialog_information.png',
                   _('Show the detailed metadata for the current book in a separate window'), _('I'))
    action_shortcut_name = _('Show Book details in a separate window')
    dont_add_to = frozenset(('context-menu-device',))
    action_type = 'current'
    action_add_menu = True
    action_menu_clone_qaction = _('Show Book details in a separate window')

    def genesis(self):
Attached Thumbnails
Click image for larger version

Name:	Clipboard02.jpg
Views:	598
Size:	41.1 KB
ID:	201691  
chaley is offline   Reply With Quote