mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Enhancement #1897432: Delete entries in the Manage Saved searches screen using the Delete key
This commit is contained in:
parent
86e4b2cc6a
commit
4291fb7f32
@ -141,6 +141,13 @@ class SavedSearchEditor(Dialog):
|
|||||||
if ans in self.searches:
|
if ans in self.searches:
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
|
def keyPressEvent(self, ev):
|
||||||
|
if ev.key() == Qt.Key_Delete:
|
||||||
|
self.del_search()
|
||||||
|
print('delete')
|
||||||
|
return
|
||||||
|
return Dialog.keyPressEvent(self, ev)
|
||||||
|
|
||||||
def populate_search_list(self):
|
def populate_search_list(self):
|
||||||
self.slist.clear()
|
self.slist.clear()
|
||||||
for name in sorted(self.searches.keys(), key=sort_key):
|
for name in sorted(self.searches.keys(), key=sort_key):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user