[committed] KeyBindingManager new removeAll() method

Reading this post: http://www.jmonkeyengine.com/jmeforum/index.php?topic=9582.0 i thought there should be an easy way to remove all previously set key bindings from KeyBindingManager.



Right now its only possible to remove single bindings.



Index: src/com/jme/input/KeyBindingManager.java
===================================================================
--- src/com/jme/input/KeyBindingManager.java   (revision 4041)
+++ src/com/jme/input/KeyBindingManager.java   (working copy)
@@ -217,6 +217,13 @@
    public void remove(String command) {
       keyMap.remove(command);
    }
+   
+   /**
+     * <code>removeAll</code> deletes all key maps from the list.
+     */
+    public void removeAll() {
+        keyMap.clear();
+    }
 
     /**
      * <code>getInstance</code> gets the static singleton instance of

It's a good idea! :slight_smile:



It seems to be very useful when creating test classes for my case