Index: mail.html
===================================================================
RCS file: /cvsroot/roundcubemail/roundcubemail/skins/default/templates/mail.html,v
retrieving revision 1.10
diff -u -b -r1.10 mail.html
--- mail.html	4 Feb 2006 19:08:10 -0000	1.10
+++ mail.html	17 Feb 2006 03:33:27 -0000
@@ -54,5 +54,23 @@
 <roundcube:label name="quota" />: <roundcube:object name="quotaDisplay" />
 </div>
 
+<script language="JavaScript">
+function keyEvent(e) 
+{
+  var pressed = e ? e.which : window.event.keyCode;
+
+  if(pressed == 46)
+  {
+    rcmail.command('delete','',this);
+  }
+  else
+  {
+    return pressed;
+  }
+}
+document.onkeyup = keyEvent;
+if (document.layers) document.captureEvents(Event.KEYPRESS);
+</script>
+
 </body>
 </html>
