Sat, 09 Apr 2016 16:34:05 +0200
Fixed the focus stealing issue with the QtWebEngine based HTML previewer.
UI/Previewers/PreviewerHTML.py | file | annotate | diff | comparison | revisions |
--- a/UI/Previewers/PreviewerHTML.py Sat Apr 09 11:37:49 2016 +0200 +++ b/UI/Previewers/PreviewerHTML.py Sat Apr 09 16:34:05 2016 +0200 @@ -208,6 +208,8 @@ self.previewView.page().loadFinished.connect( self.__restoreScrollBarPositions) self.previewView.setHtml(html, baseUrl=QUrl.fromLocalFile(filePath)) + if self.__previewedEditor: + self.__previewedEditor.setFocus() @pyqtSlot(str) def on_previewView_titleChanged(self, title):