mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
fix +14891 Disable terminal popup on double click
This commit is contained in:
parent
c4500a1abc
commit
d3aa5f8d5c
@ -102,7 +102,8 @@ var HoverLink = function(editor) {
|
||||
this.onClick = function(e) {
|
||||
if (!this.editor.isFocused())
|
||||
return;
|
||||
|
||||
if (e.detail != 1)
|
||||
return;
|
||||
if (this.link && this.isOpen) { // && this.link.isFocused
|
||||
if (this.editor.selection.isEmpty()) {
|
||||
this.editor.selection.setSelectionRange(this.range);
|
||||
|
||||
@ -169,7 +169,7 @@ define(function(require, exports, module) {
|
||||
menu = menuPath;
|
||||
}
|
||||
|
||||
menu.show(e.x, e.y);
|
||||
menu.show(e.x, e.y, "context");
|
||||
}
|
||||
|
||||
function openLink(href, inPreview){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user