mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-04 14:55:43 +02:00
messagewebview: remove redundant default webview context menu
Gitlab: #58 Change-Id: I5dfd587a56289137b1e53de256482865de7f13df
This commit is contained in:
parent
c5f7584d0a
commit
063cc58643
1 changed files with 7 additions and 0 deletions
|
@ -261,6 +261,13 @@ Rectangle {
|
|||
messageWebView.runJavaScript("displayNavbar(false);")
|
||||
}
|
||||
}
|
||||
|
||||
onContextMenuRequested: {
|
||||
var needContextMenu = request.selectedText.length || request.isContentEditable
|
||||
if (!needContextMenu)
|
||||
request.accepted = true
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
messageWebView.loadHtml(UtilsAdapter.qStringFromFile(
|
||||
":/chatview.html"), ":/chatview.html")
|
||||
|
|
Loading…
Add table
Reference in a new issue