<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,10 @@
 *1.0.2* (Not Released)
 
+ - The deleteHandler now works as expected. Turns out &quot;delete&quot; is a reserved
+   word in JavaScript, so the internal delete function was renamed to destroy.
+   Also added listeners for the standard delete key code as well as Safari's
+   crazy delete key code.
+
  - 
 
 *1.0.1* (November 27th, 2007)</diff>
      <filename>CHANGES</filename>
    </modified>
    <modified>
      <diff>@@ -37,6 +37,10 @@
 
               openHandler : function(element) {
                 alert('opening')
+              },
+
+              deleteHandler : function(element) {
+                alert('No deleteHandler defined!')
               }
 
             }</diff>
      <filename>examples/files/index.html</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@
     &lt;/title&gt;
     &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
     &lt;link rel=&quot;stylesheet&quot; href=&quot;stylesheets/gallery.css&quot; type=&quot;text/css&quot; /&gt;
-	&lt;script src=&quot;/mint/?js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;/mint/?js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
     &lt;script src=&quot;../../javascripts/prototype.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
     &lt;script src=&quot;../../javascripts/effects.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
     &lt;script src=&quot;../../javascripts/matrixview.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
@@ -38,6 +38,10 @@
 
               openHandler : function(element) {
                 alert('No openHandler defined!')
+              },
+
+              deleteHandler : function(element) {
+                alert('No deleteHandler defined!')
               }
 
             }</diff>
      <filename>examples/gallery/index.html</filename>
    </modified>
    <modified>
      <diff>@@ -8,32 +8,31 @@
     &lt;/title&gt;
     &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
     &lt;link rel=&quot;stylesheet&quot; href=&quot;stylesheets/default.css&quot; type=&quot;text/css&quot; /&gt;
-  	&lt;script src=&quot;/mint/?js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
-    &lt;script src=&quot;http://www.google-analytics.com/urchin.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
-    &lt;script type=&quot;text/javascript&quot;&gt;
-      _uacct = &quot;UA-305304-3&quot;;
-      urchinTracker();
-    &lt;/script&gt;
+    &lt;script src=&quot;/mint/?js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
   &lt;/head&gt;
   &lt;body&gt;
 
     &lt;div id=&quot;header&quot;&gt;
       &lt;h1&gt;
-        MatrixView &lt;span style=&quot;color: #ccc; font-weight: normal; font-size: smaller&quot;&gt;for Prototype&lt;/span&gt;
+        MatrixView
+        &lt;span style=&quot;color: #ccc; font-weight: normal; font-size: smaller&quot;&gt;for Prototype&lt;/span&gt;
       &lt;/h1&gt;
     &lt;/div&gt;
 
     &lt;div id=&quot;main&quot;&gt;
 
       &lt;p&gt;
-        MatrixView is a JavaScript library that enables web application developers to easily and unobtrusively add rich
-        functionality to standard HTML unordered lists, such as keyboard navigation and mouse selection. It is great
-        for enhancing photo galleries, file browsers, and more! MatrixView is written for use with the Prototype
-        framework.
+        MatrixView is a JavaScript library that enables web application
+        developers to easily and unobtrusively add rich functionality to
+        standard HTML unordered lists, such as keyboard navigation and mouse
+        selection. It is great for enhancing photo galleries, file browsers,
+        and more! MatrixView is written for use with the Prototype framework.
       &lt;/p&gt;
       &lt;p&gt;
         &lt;em&gt;
-          MatrixView is released under the &lt;a href=&quot;http://opensource.org/licenses/mit-license.php&quot;&gt;MIT License&lt;/a&gt;.
+          MatrixView is released under the
+          &lt;a href=&quot;http://opensource.org/licenses/mit-license.php&quot;&gt;MIT
+          License&lt;/a&gt;.
         &lt;/em&gt;
       &lt;/p&gt;
 
@@ -44,30 +43,34 @@
         &lt;li&gt;
           &lt;strong&gt;Unobtrusive Design&lt;/strong&gt;&lt;br /&gt;
           &lt;span style=&quot;color: #666; font-size: smaller&quot;&gt;
-            MatrixView stays out of your way so you can focus on what's important. Just point it at a standard
-            unordered list and MatrixView takes care of the rest!
+            MatrixView stays out of your way so you can focus on what's
+            important. Just point it at a standard unordered list and
+            MatrixView takes care of the rest!
           &lt;/span&gt;
         &lt;/li&gt;
         &lt;li&gt;
           &lt;strong&gt;Callback Support&lt;/strong&gt;&lt;br /&gt;
           &lt;span style=&quot;color: #666; font-size: smaller&quot;&gt;
-            Define custom callbacks/handlers for various events within the matrix view, such as opening or removing an
-            object.
+            Define custom callbacks/handlers for various events within the
+            matrix view, such as opening or removing an object.
           &lt;/span&gt;
         &lt;/li&gt;
         &lt;li&gt;
           &lt;strong&gt;Object Selection with Keyboard/Mouse&lt;/strong&gt;&lt;br /&gt;
           &lt;span style=&quot;color: #666; font-size: smaller&quot;&gt;
-            Handles selection of one or more objects using your keyboard and mouse. Click to select, double-click to
-            open, combine clicks and keyboard navigation to expand selection with shift+click and shift+arrows. Also
-            supports common keyboard shortcuts, such as Ctrl+A to select all objects, enter to open, and
-            backspace/delete for deletion.
+            Handles selection of one or more objects using your keyboard and
+            mouse. Click to select, double-click to open, combine clicks and
+            keyboard navigation to expand selection with shift+click and
+            shift+arrows. Also supports common keyboard shortcuts, such as
+            Ctrl+A to select all objects, enter to open, and backspace/delete
+            for deletion.
           &lt;/span&gt;
         &lt;/li&gt;
         &lt;li&gt;
           &lt;strong&gt;Keyboard Navigation&lt;/strong&gt;&lt;br /&gt;
           &lt;span style=&quot;color: #666; font-size: smaller&quot;&gt;
-            Allows you to navigate the matrix using the arrow keys and other shortcuts on your keyboard.
+            Allows you to navigate the matrix using the arrow keys and other
+            shortcuts on your keyboard.
           &lt;/span&gt;
         &lt;/li&gt;
       &lt;/ul&gt;
@@ -99,11 +102,13 @@
       &lt;ul&gt;
         &lt;li&gt;
           &lt;a href=&quot;examples/gallery&quot;&gt;Photo Gallery&lt;/a&gt;&lt;br /&gt;
-          Demonstrates how the MatrixView might be used in a photo gallery situation.
+          Demonstrates how the MatrixView might be used in a photo gallery
+          situation.
         &lt;/li&gt;
         &lt;li&gt;
           &lt;a href=&quot;examples/files&quot;&gt;File Browser&lt;/a&gt;&lt;br /&gt;
-          Demonstrates how the MatrixView might be used in a file browser situation.
+          Demonstrates how the MatrixView might be used in a file browser
+          situation.
         &lt;/li&gt;
       &lt;/ul&gt;
 
@@ -114,28 +119,49 @@
         MatrixView requires &lt;a href=&quot;http://www.prototypejs.org/&quot;&gt;Prototype&lt;/a&gt; 1.6 (or later).
       &lt;/p&gt;
       &lt;ul&gt;
-        &lt;li&gt;&lt;a href=&quot;releases/matrixview-1.0.1.zip&quot;&gt;matrixview-1.0.1.zip&lt;/a&gt; &#8212; Library, Examples, Documentation&lt;/li&gt;
-        &lt;li&gt;&lt;a href=&quot;javascripts/matrixview.js&quot;&gt;matrixview.js&lt;/a&gt; &#8212; JavaScript Library&lt;/li&gt;
+        &lt;li&gt;
+          &lt;a href=&quot;releases/matrixview-1.0.1.zip&quot;&gt;matrixview-1.0.1.zip&lt;/a&gt;
+          &#8212; Library, Examples, Documentation
+        &lt;/li&gt;
+        &lt;li&gt;
+          &lt;a href=&quot;javascripts/matrixview.js&quot;&gt;matrixview.js&lt;/a&gt;
+          &#8212; JavaScript Library
+        &lt;/li&gt;
       &lt;/ul&gt;
       &lt;p&gt;
-        You may also checkout the source code from Subversion at &lt;code&gt;http://code.aspect.net/public&lt;/code&gt; or &lt;a href=&quot;http://public.code.aspect.net/browser/matrixview&quot;&gt;browse the source code&lt;/a&gt;.
+        You may also checkout the source code from Subversion at
+        &lt;code&gt;http://code.aspect.net/public/matrixview&lt;/code&gt; or
+        &lt;a href=&quot;http://public.code.aspect.net/browser/matrixview&quot;&gt;browse the
+        source code&lt;/a&gt;.
       &lt;/p&gt;
 
       &lt;h2 style=&quot;background-image: url('images/history.png')&quot;&gt;
         Release History
       &lt;/h2&gt;
       &lt;h3&gt;
+        Version 1.0.2 &#8212; Not Released
+      &lt;/h3&gt;
+      &lt;ul&gt;
+        &lt;li&gt;
+          The deleteHandler now works as expected. Turns out &quot;delete&quot; is a
+          reserved word in JavaScript, so the internal delete function was
+          renamed to destroy. Also added listeners for the standard delete key
+          code as well as Safari's crazy delete key code.
+        &lt;/li&gt;
+      &lt;/ul&gt;
+      &lt;h3&gt;
         Version 1.0.1 &#8212; November 27th, 2007
       &lt;/h3&gt;
       &lt;ul&gt;
         &lt;li&gt;
-          Fixed an issue with the examples and documentation that prevented Internet
-          Explorer from initializing the MatrixView.
+          Fixed an issue with the examples and documentation that prevented
+          Internet Explorer from initializing the MatrixView.
         &lt;/li&gt;
         &lt;li&gt;
-          Replaced the images that were being used in the Photo Gallery example, as
-          the ones used previously are no longer covered under a Creative Commons
-          license. This change was also retroactively applied to the 1.0.0 package.
+          Replaced the images that were being used in the Photo Gallery
+          example, as the ones used previously are no longer covered under a
+          Creative Commons license. This change was also retroactively applied
+          to the 1.0.0 package.
         &lt;/li&gt;
       &lt;/ul&gt;
       &lt;h3&gt;
@@ -149,17 +175,25 @@
         Development Roadmap
       &lt;/h2&gt;
       &lt;p&gt;
-        The following is a tentative agenda for future development of MatrixView. If you have any feature requests or
-        suggestions, please &lt;a href=&quot;mailto:justin@aspect.net&quot;&gt;contact me&lt;/a&gt;. Additionally, if you are
-        interested in contributing enhancements to MatrixView, please feel free to submit patches or contact me to
-        request repository write access.
+        The following is a tentative agenda for future development of
+        MatrixView. If you have any feature requests or suggestions, please &lt;a
+        href=&quot;mailto:justin@aspect.net&quot;&gt;contact me&lt;/a&gt;. Additionally, if you
+        are interested in contributing enhancements to MatrixView, please feel
+        free to submit patches or contact me to request possible repository
+        access.
       &lt;/p&gt;
       &lt;p&gt;
         &lt;strong&gt;Version 1.1&lt;/strong&gt;
         &lt;ul&gt;
-          &lt;li&gt;Support multiple MatrixView's per page&lt;/li&gt;
-          &lt;li&gt;Improve support for the iPhone (disable selection support, etc)&lt;/li&gt;
-          &lt;li&gt;General cleanups and better code abstraction&lt;/li&gt;
+          &lt;li&gt;
+            Support multiple MatrixView's per page
+          &lt;/li&gt;
+          &lt;li&gt;
+            Improve support for the iPhone (disable selection support, etc)
+          &lt;/li&gt;
+          &lt;li&gt;
+            General cleanups and better code abstraction
+          &lt;/li&gt;
         &lt;/ul&gt;
       &lt;/p&gt;
       &lt;p&gt;
@@ -200,7 +234,7 @@
         Options
       &lt;/h3&gt;
       &lt;p&gt;
-        The MatrixView has a number of options that can be set at the time of initialization.
+        MatrixView has a number of options that can be set at the time of initialization.
       &lt;/p&gt;
 
       &lt;table id=&quot;options&quot;&gt;</diff>
      <filename>index.html</filename>
    </modified>
    <modified>
      <diff>@@ -95,11 +95,10 @@ MatrixView.prototype = {
           if (window.matrixView.selectedItems.size() == 1)
             window.matrixView.open(window.matrixView.selectedItems.first())
         }
-        if (event.keyCode == Event.KEY_BACKSPACE) // Delete/Backspace
+        if (event.keyCode == Event.KEY_BACKSPACE || event.keyCode == Event.KEY_DELETE || event.keyCode == 63272) // Delete/Backspace
         {
-          // FIXME delete is a reserved word, need to rename this
-          // window.matrixView.delete(window.matrixView.selectedItems)
-          // event.stop()
+          window.matrixView.destroy(window.matrixView.selectedItems)
+          event.stop()
         }
         if (event.keyCode == Event.KEY_LEFT || event.keyCode == 63234) // Left Arrow
           window.matrixView.moveLeft(event)
@@ -252,12 +251,12 @@ MatrixView.prototype = {
       this.openHandler(element)
   },
 
-  // delete: function(elements)
-  // {
-  //   // If a custom open handler has been defined, call it
-  //   if (this.deleteHandler != null)
-  //     this.deleteHandler(elements)
-  // },
+  destroy: function(elements)
+  {
+    // If a custom open handler has been defined, call it
+    if (this.deleteHandler != null)
+      this.deleteHandler(elements)
+  },
 
   selectAll: function()
   {</diff>
      <filename>javascripts/matrixview.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,5 @@
 body
 {
-/*  margin-left: auto;
-  margin-right: auto;
-  width: 800px;
-*/
   margin: 0px;
 }
 </diff>
      <filename>stylesheets/default.css</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4a7d561d59a621e245171cfe349539cbb3780e99</id>
    </parent>
  </parents>
  <author>
    <name>Justin Mecham</name>
    <email>justin@mecham.net</email>
  </author>
  <url>http://github.com/jsmecham/matrixview/commit/74d99409e85b2f207b7433508e9c6bb782bba52b</url>
  <id>74d99409e85b2f207b7433508e9c6bb782bba52b</id>
  <committed-date>2007-12-04T07:39:02-08:00</committed-date>
  <authored-date>2007-12-04T07:39:02-08:00</authored-date>
  <message>The deleteHandler now works as expected. Turns out &quot;delete&quot; is a reserved word in JavaScript, so the internal delete function was renamed to destroy. Also added listeners for the standard delete key code as well as Safari's crazy delete key code.</message>
  <tree>4ccf32cb64cdcd5b90421be33c3c07e4951cd4b4</tree>
  <committer>
    <name>Justin Mecham</name>
    <email>justin@mecham.net</email>
  </committer>
</commit>
