2011-05-15 03:56:54 +02:00
|
|
|
if (document.layers) {
|
|
|
|
document.captureEvents(Event.KEYPRESS);
|
|
|
|
}
|
2011-05-15 01:32:47 +02:00
|
|
|
|
2011-05-15 03:56:54 +02:00
|
|
|
function process_keypress(e)
|
|
|
|
{
|
|
|
|
if(window.event) {
|
|
|
|
if (window.event.type == "keypress" & window.event.keyCode == 13) {
|
|
|
|
return !(window.event.type == "keypress" & window.event.keyCode == 13);
|
2011-05-15 01:32:47 +02:00
|
|
|
}
|
2011-05-15 03:56:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if(e) {
|
|
|
|
if (e.type == "keypress" & e.keyCode == 13) {
|
|
|
|
return !e;
|
2011-05-15 01:32:47 +02:00
|
|
|
}
|
2011-05-15 03:56:54 +02:00
|
|
|
}
|
2011-05-15 01:32:47 +02:00
|
|
|
}
|
2011-05-15 03:56:54 +02:00
|
|
|
|
2011-05-29 03:38:56 +02:00
|
|
|
//document.onkeypress = process_keypress;
|