Solved!!
The problem was in the fnTrapKD function.
FF does not stop the event with event.returnValue=false;
These is the new function, It works
Thanks anyway
Luca
function fnTrapKD(event)
{
if (navigator.appName.indexOf ("Microsoft") !=-1)
{
if (event.keyCode == 13 )
{
event.returnValue=false;
event.cancel = false;
doSearch();
}
} else
{
if (event.keyCode == 13)
{
var newEvent =
document.createEvent("KeyEvents");
newEvent.initKeyEvent("keypress", true, true,
document.defaultView, event.ctrlKey, event.altKey, event.shiftKey,
event.metaKey, 0, doSearch());
event.preventDefault();
event.target.dispatchEvent(newEvent);
}
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---