better IE "tab from subject" fix

Max Kalika max@the-triumvirate.net
Fri, 03 Nov 2000 16:55:41 -0800 (PST)


its probably better to let the in-place browser sniffer to detect when to 
include the "tab hack"

(this is tested in win32 IE5.5 and NS4.08)

[root@host compose]# cvs diff -u javascript.inc 
Index: javascript.inc
===================================================================
RCS file: /cvs/horde/imp/templates/compose/javascript.inc,v
retrieving revision 2.26
diff -u -r2.26 javascript.inc
--- javascript.inc      2000/10/31 22:06:17     2.26
+++ javascript.inc      2000/11/04 00:53:59
@@ -272,5 +272,16 @@
     document.compose.elements[4 + 8 * sel].checked = true;
 }
  
+function subjectTab()
+{
+<?php if ($browser->msie): ?>
+    if(event.keyCode == 9) {
+        event.returnValue = false;
+        document.compose.message.focus();
+    }
+<?php else: ?>
+    return true;
+<?php endif; ?>
+}
 //-->
 </script>