From 69e863e6caeb14391135932387f4f0a5bf05c08e Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Thu, 23 Jul 2015 07:43:38 +0200 Subject: [PATCH] just some test code for opening result in foreground tab when ctrl key is pressed --- chrome/content/overlay.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chrome/content/overlay.js b/chrome/content/overlay.js index e6d5f95..51b9261 100644 --- a/chrome/content/overlay.js +++ b/chrome/content/overlay.js @@ -8,7 +8,10 @@ var leo_search = { if(query != null) { var myURL = "http://dict.leo.org/" + lang + "de?lang=" + sitelang + "&search=" + query; - openNewTabWith(myURL, null, null, true); + if(instanceOfMouseEvent.ctrlKey == true) + openNewTabWith(myURL, null, null, true); + else + openNewTabWith(myURL, null, null, true); } } };