General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
find dialog instead of find bar
Posted by: guest
Date: November 08, 2008 05:02PM

Is there a way to have ctrl-f use the find dialog instead of the find bar ? The find dialog is still there, using Javascript window.find() brings it up. Shouldn't this be a user selectable setting ?

Options: ReplyQuote
Re: find dialog instead of find bar
Posted by: desga2
Date: November 08, 2008 06:49PM

You can do it with this macro FindDialog.kmm: (I used for this the accelerate Ctrl+Alt+F)
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------- Find Dialog --------------------------------------------------------------------------
#
# Dependencies : main.kmm
# Resources : -
# Preferences : -
#
# -------------------------------------------------------------------------------------------------

FindDialog{
macroinfo=_("Prompt for find the specified text");
injectJS("window.find()");
}

# ----- PRIVATE

_FindDialog_BuildMenu{
setmenu(Find,macro,_("Find &Dialog ..."),FindDialog,"&Find In Page");
setaccel("CTRL ALT F","macros(FindDialog)");
}

$OnInit=$OnInit."_FindDialog_BuildMenu;";

# -------------------------------------------------------------------------------------------------
$macroModules=$macroModules."FindDialog;";

But this code dialog not work because only return true or false if word is found but not selected it in page.
You need more JavaScript code to this work.
See this form example.

K-Meleon in Spanish

Options: ReplyQuote


K-Meleon forum is powered by Phorum.