mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Keyboard shortcuts for find next and previous in diff view
This commit is contained in:
parent
cb63a16439
commit
d09c93fc66
@ -248,6 +248,13 @@ class Diff(Dialog):
|
||||
text = self.view.view.left.selected_text + self.view.view.right.selected_text
|
||||
if text:
|
||||
QApplication.clipboard().setText(text)
|
||||
return
|
||||
if ev.matches(QKeySequence.FindNext):
|
||||
self.sbn.click()
|
||||
return
|
||||
if ev.matches(QKeySequence.FindPrevious):
|
||||
self.sbp.click()
|
||||
return
|
||||
return Dialog.keyPressEvent(self, ev)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
x
Reference in New Issue
Block a user