>>364 Fx バジョン次第なので、UA での判定が甘いけど参考に
<?xml version='1.0'?>
<overlay id='_key-overlay' xmlns='
http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'>
<script type="application/x-javascript"><![CDATA[
var _key={
toggleFindbar: function() {
var findBar = document.getElementById('FindToolbar');
var tmp = navigator.userAgent.match(/rv:([\.\d]+)/);
var ver = (RegExp.$1).substring(0, 5);
if ( ver == "1.9" ) { //Fx 3
if(findBar.hidden) findBar.onFindCommand();
else findBar.close();
} else { var sel = document.commandDispatcher.focusedWindow.getSelection().toString();
if(sel) document.getElementById("find-field").value = sel;
if ( ver == "1.8.0" ) { // Fx 1.x
if(findBar.hidden) onFindCmd();
else closeFindBar();
} else { // Fx 2.x
if(findBar.hidden) gFindBar.onFindCmd();
else gFindBar.closeFindBar();
}}}
}
]]></script>
<window id="main-window">
<keyset id="mainKeyset"> <key id="key_find" oncommand="_key.toggleFindbar();" /> </keyset>
<commandset id="mainCommandSet"> <command id="cmd_find" oncommand="_key.toggleFindbar();" /> </commandset>
</window>
</overlay>