From b83616b5cc48299ecf99ad8cf4d3bd3f9d8a9c3a Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Sun, 31 Jul 2016 03:12:16 +0500 Subject: [PATCH] add exit from routeOnClick() if we got LMB event and some text is selected --- js/interface_common.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/interface_common.js b/js/interface_common.js index d7e33dd..0402b78 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -1041,6 +1041,9 @@ function routeOnClick(event) { if (!event || !event.data || !event.data.route) return; + if (event.button === 0 && window.getSelection().toString() !== '') + return; + event.stopPropagation(); event.preventDefault();