Bugs :  K-Meleon Web Browser Forum
You can talk about issues with k-meleon here.  
How to change search button behavior (selected text)
Posted by: Robert Bindler
Date: April 15, 2008 03:35AM

I've now been using K-meleon for over a month, and it has quickly become my favorite browser. However, there is one glaring problem that I'm having, which depending on my mood, makes me switch back to Firefox when it happens.

Here is the current behavior:
1) Select some text on the page
2) enter some search terms in the URL bar
3) click on the search button
Result) the selected text is searched, and the terms you entered are ignored.

How can I change this? I like to select portions of text as I am reading through a web page, so this little problem comes up many times a day for me.

How do I remove the search for selected text feature?

Options: ReplyQuote
Re: How to change search button behavior (selected text)
Posted by: Robert Bindler
Date: April 15, 2008 03:36AM

(err, I thought I had the Discussion tab open. Mods/admins, please move this thread if you wish)

Options: ReplyQuote
Re: How to change search button behavior (selected text)
Posted by: desga2
Date: April 16, 2008 07:14PM

Go to K-Meleon installation folder, in 'macros' subfolder open 'search.kmm' file with a plain text editor (as notepad). Search this code at beginning of file:
Search{
$_Search_EngineURL==""?$_Search_EngineURL=getpref(STRING,$_Search_pref_DefaultURL):0;
$_Search_EngineName==""?$_Search_EngineName=getpref(STRING,$_Search_pref_DefaultName):0;
$_Search_Query=$SelectedText; $_Search_Query==""?&_Search_Typed:&_Search_Selected;
$_Search_EngineName="";
$_Search_EngineURL="";
}

Change by this code:
Search{
$_Search_EngineURL==""?$_Search_EngineURL=getpref(STRING,$_Search_pref_DefaultURL):0;
$_Search_EngineName==""?$_Search_EngineName=getpref(STRING,$_Search_pref_DefaultName):0;
$_urltyped = index($URLBAR, "http://"winking smiley;
$_Search_Query=$SelectedText;
$_urltyped==-1?&_Search_Typed:&_Search_Selected;
$_Search_EngineName="";
$_Search_EngineURL="";
}

Greetings.

K-Meleon in Spanish

Options: ReplyQuote


K-Meleon forum is powered by Phorum.