Quote:
Originally Posted by DaltonST
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):