Simple search function now working

This commit is contained in:
Veronica K. B. Olsen
2019-09-29 18:50:43 +02:00
parent 1bf539d490
commit cb2ee95d10
4 changed files with 47 additions and 12 deletions
+8 -1
View File
@@ -406,12 +406,19 @@ class GuiMainMenu(QMenuBar):
self.editMenu.addAction(menuItem)
# Edit > Find Next
menuItem = QAction(QIcon.fromTheme("go-right"), "Go Next", self)
menuItem = QAction(QIcon.fromTheme("go-next"), "Go Next", self)
menuItem.setStatusTip("Find next occurrence text in document")
menuItem.setShortcut("F3")
menuItem.triggered.connect(lambda: self._docAction(nwDocAction.GO_NEXT))
self.editMenu.addAction(menuItem)
# Edit > Find Prev
menuItem = QAction(QIcon.fromTheme("go-previous"), "Go Previous", self)
menuItem.setStatusTip("Find previous occurrence text in document")
menuItem.setShortcut("Shift+F3")
menuItem.triggered.connect(lambda: self._docAction(nwDocAction.GO_PREV))
self.editMenu.addAction(menuItem)
# Edit > Separator
self.editMenu.addSeparator()