mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 10:44:27 +01:00
Keyboard shortcuts for find next and previous in diff view
This commit is contained in:
parent
cb63a16439
commit
d09c93fc66
1 changed files with 7 additions and 0 deletions
|
|
@ -248,6 +248,13 @@ def keyPressEvent(self, ev):
|
|||
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…
Reference in a new issue