mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 04:43:41 +02:00
E-book viewer: Allow pressing the delete key to delete the currently selected highlight.
This commit is contained in:
parent
264f6ef885
commit
a164265c90
1 changed files with 3 additions and 0 deletions
|
|
@ -566,6 +566,9 @@ def on_keydown(self, ev):
|
|||
if ev.key is 'Escape':
|
||||
self.clear_selection()
|
||||
return
|
||||
if ev.key is 'Delete':
|
||||
self.remove_highlight()
|
||||
return
|
||||
if ev.key and ev.key.toLowerCase() is 'c' and ev.ctrlKey:
|
||||
self.copy_to_clipboard()
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue