Handle comments with and without an initial space

This commit is contained in:
Veronica K. B. Olsen
2019-11-21 15:25:48 +01:00
parent ba3497a130
commit f21e85534d
2 changed files with 8 additions and 2 deletions
+3
View File
@@ -459,6 +459,9 @@ class GuiMain(QMainWindow):
return True
def passDocumentAction(self, theAction):
"""Pass on document action theAction to whatever document has
the focus. If no document has focus, the action is discarded.
"""
if self.docEditor.hasFocus():
self.docEditor.docAction(theAction)
elif self.docViewer.hasFocus():