Fix #1944615 [[Enhancement] "Remove this highlight" would benefit from another hotkey](https://bugs.launchpad.net/calibre/+bug/1944615)

This commit is contained in:
Kovid Goyal 2021-09-23 07:47:23 +05:30
parent d12e14b236
commit f2dcb7a967
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -191,7 +191,7 @@ def all_actions():
'search': a('search', _('Search for selection in the book') + ' [F]', 'book_search'),
'bookmark': a('bookmark', _('Create a bookmark') + ' [Ctrl+Alt+B]', 'new_bookmark'),
'search_net': a('global-search', _('Search for selection on the net') + ' [S]', 'internet_search'),
'remove_highlight': a('trash', _('Remove this highlight') + ' [Delete]', 'remove_highlight', True),
'remove_highlight': a('trash', _('Remove this highlight') + ' [Delete or D]', 'remove_highlight', True),
'clear': a('close', _('Clear selection') + ' [Esc]', 'clear_selection'),
'speak': a('bullhorn', _('Read aloud') + ' [T]', 'speak_aloud'),
'cite': a('reference-mode', _('Copy citation to clipboard') + ' [X]', 'cite'),
@ -600,7 +600,7 @@ class SelectionBar:
if k is 'x':
self.cite()
return
if k is 'delete':
if k is 'delete' or k is 'd':
self.remove_highlight()
return
sc_name = shortcut_for_key_event(ev, self.view.keyboard_shortcut_map)