diff --git a/LICENSE b/LICENSE index e815aa5..c2fdd43 100644 --- a/LICENSE +++ b/LICENSE @@ -176,7 +176,7 @@ recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2013 David Mauro + Copyright 2014 David Mauro Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index 2902758..5fbc7e0 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Keypress is a robust keyboard input capturing Javascript utility focused on input for games. For details and documentation, please visit [http://dmauro.github.io/Keypress/](http://dmauro.github.io/Keypress/) -Copyright 2013 David Mauro +Copyright 2014 David Mauro released under the Apache License, version 2.0 @@ -15,13 +15,14 @@ released under the Apache License, version 2.0 2.0.0 -* Keypress now has a listener class that must be instantiated. -* Each instance of a Keypress listener can be bound to a DOM element. +* Keypress now has a listener class that must be instantiated. The functions that were previously in the global window.keypress object are now public methods of the window.keypress.Listener class. +* Each instance of a Keypress listener can be bound to a DOM element by passing in the element to the listener's constructor. * Combos now default to being ordered (the property is now called is_unordered and is false by default). * Combos' handlers preventDefault unless the handler returns true. * The "combo" public method is now called "simple_combo". * The basic combo helpers for simple, counting and sequence combos no longer have a third prevent_default optional parameter. * Debugging console logs can be enabled by setting keypress.debug to true. +* All key event callbacks send a third argument specifying whether the event is firing again automatically because the key has remained pressed down. 1.0.9 diff --git a/coffee-compiler.sh b/coffee-compiler.sh index 8c14020..f3fc238 100755 --- a/coffee-compiler.sh +++ b/coffee-compiler.sh @@ -1,6 +1,6 @@ #!/bin/bash VERSION="2.0.0" -YEAR="2013" +YEAR="2014" cd "$( cd "$( dirname "$0" )" && pwd )" coffee -c keypress.coffee java -jar compiler.jar --js keypress.js --js_output_file keypress-$VERSION.min.js diff --git a/keypress-2.0.0.min.js b/keypress-2.0.0.min.js index ab3cf17..4c85113 100644 --- a/keypress-2.0.0.min.js +++ b/keypress-2.0.0.min.js @@ -1,5 +1,5 @@ /* - Keypress version 2.0.0 (c) 2013 David Mauro. + Keypress version 2.0.0 (c) 2014 David Mauro. Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 */ diff --git a/keypress.coffee b/keypress.coffee index c75c33e..60de9cd 100644 --- a/keypress.coffee +++ b/keypress.coffee @@ -1,5 +1,5 @@ ### -Copyright 2013 David Mauro +Copyright 2014 David Mauro Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/keypress.js b/keypress.js index 3b5a1b6..b6d427b 100644 --- a/keypress.js +++ b/keypress.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript 1.6.3 /* -Copyright 2013 David Mauro +Copyright 2014 David Mauro Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.