From bf40cb20097d392bf77354d784537a1279c78efe Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 16 Mar 2013 12:06:35 +0000 Subject: [PATCH] Use voke.fm for PHP and CSS searches Continue to use Google for other searches --- lib/ice-coder.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 594cf47..1582297 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -1949,10 +1949,14 @@ var ICEcoder = { // CTRL+I (Get info) } else if(key==73 && top.ICEcoder.ctrlKeyDown==true && area == "content") { var searchPrefix = ""; - if (top.ICEcoder.caretLocType!="Content") { - searchPrefix = top.ICEcoder.caretLocType.toLowerCase()+" "; + if (top.ICEcoder.caretLocType=="CSS"||top.ICEcoder.caretLocType=="PHP") { + window.open("http://voke.fm/"+top.ICEcoder.getcMInstance().getSelection()); + } else { + if (top.ICEcoder.caretLocType!="Content") { + searchPrefix = top.ICEcoder.caretLocType.toLowerCase()+" "; + } + window.open("http://www.google.com/#output=search&q="+searchPrefix+top.ICEcoder.getcMInstance().getSelection()); } - window.open("http://www.google.com/#output=search&q="+searchPrefix+top.ICEcoder.getcMInstance().getSelection()); top.ICEcoder.ctrlKeyDown = false; return false;