Browse Source

add exit from routeOnClick() if we got LMB event and some text is selected

readme-update
Simon Grim 9 years ago
parent
commit
b83616b5cc
  1. 3
      js/interface_common.js

3
js/interface_common.js

@ -1041,6 +1041,9 @@ function routeOnClick(event) { @@ -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();

Loading…
Cancel
Save