Skip to content
Snippets Groups Projects
Commit d0b0bee4 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

chatview: prevent ctrl click

- attempting to open a url in a new tab will crash the
  QtWebEngineProcess

Change-Id: I689fbf5e8eb75719e6daba402869ddf299c28f87
Gitlab: #121
parent c82d59b8
Branches
No related tags found
No related merge requests found
......@@ -71,6 +71,13 @@ var isInitialLoading = false
var imagesLoadingCounter = 0
var canLazyLoad = false
// ctrl + click on link will crash QtWebEngineProcess
document.body.onclick = function(e) {
if (e.ctrlKey) {
return false
}
}
/* Set the default target to _self and handle with QWebEnginePage::acceptNavigationRequest */
var linkifyOptions = {}
if (use_qt) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment