Cut/Copy/Select shortcuts now also work in doc viewer if it has focus

This commit is contained in:
Veronica K. B. Olsen
2019-11-21 13:37:11 +01:00
parent bd301bd5cc
commit 5b7e3fabde
4 changed files with 39 additions and 4 deletions
+9
View File
@@ -458,6 +458,15 @@ class GuiMain(QMainWindow):
return True
def passDocumentAction(self, theAction):
if self.docEditor.hasFocus():
self.docEditor.docAction(theAction)
elif self.docViewer.hasFocus():
self.docViewer.docAction(theAction)
else:
logger.debug("Document action requested, but no document has focus")
return True
##
# Tree Item Actions
##