mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
E-book viewer: Allow pressing the delete key to delete the currently selected highlight.
This commit is contained in:
parent
264f6ef885
commit
a164265c90
@ -566,6 +566,9 @@ class SelectionBar:
|
||||
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…
x
Reference in New Issue
Block a user