mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix keyboard shortcuts for Edit book tools created from plugins not working
This commit is contained in:
parent
3874f4b2f3
commit
03df594e07
@ -84,7 +84,7 @@ class Tool(object):
|
|||||||
'''
|
'''
|
||||||
short_text = short_text or unicode(qaction.text()).replace('&&', '\0').replace('&', '').replace('\0', '&')
|
short_text = short_text or unicode(qaction.text()).replace('&&', '\0').replace('&', '').replace('\0', '&')
|
||||||
self.gui.keyboard.register_shortcut(
|
self.gui.keyboard.register_shortcut(
|
||||||
self.name + '_' + unique_name, short_text, default_keys=default_keys,
|
self.name + '_' + unique_name, short_text, default_keys=default_keys, action=qaction,
|
||||||
description=description or '', group=_('Plugins'))
|
description=description or '', group=_('Plugins'))
|
||||||
|
|
||||||
def create_action(self, for_toolbar=True):
|
def create_action(self, for_toolbar=True):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user