Index: chatinput.php =================================================================== RCS file: /cvsroot/moodle/moodle/mod/chat/gui_sockets/chatinput.php,v retrieving revision 1.11.4.1 diff -u -r1.11.4.1 chatinput.php --- chatinput.php 14 Dec 2007 21:21:07 -0000 1.11.4.1 +++ chatinput.php 21 Apr 2008 20:07:32 -0000 @@ -1,4 +1,4 @@ -chat_refresh_userlist; ?> * 1000); } } + +function setfocus() { + window.document.getElementsByName("chat_message")[0].focus(); +} // -->