fix +14891 Disable terminal popup on double click

This commit is contained in:
nightwing 2016-11-24 23:07:03 +00:00
parent c4500a1abc
commit d3aa5f8d5c
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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){