Releases: bitwalker/keys.js
Releases · bitwalker/keys.js
0.2.1
Version 0.2.0
CHANGELOG
Breaking Changes
- Keys.js now loads itself into the
Keys
namespace on initialization. You will have to make sure that you either create aliases for theBindings
,Combo
, andKey
classes, or reference them with the fully qualified name, ex.Keys.Bindings
.
Newly Added
- Added
Bindings.load
method, which allows you to fully specify both bindings and handlers for your entire application with one call. This can drastically simplify configuration code. See documentation for examples and more detail. - Added description property to bindings, and can now be passed as a parameter to
Bindings.add
, or as a property of the specification object passed toBindings.load
. This can be used to provide a friendly name for your presentation layer, should you wish to list bindings programmatically.
New Behavior
- By default, handlers are not executed in the context of input, textarea, or select elements. Can be overridden with
isGlobal
boolean flag as last parameter provided toBindings.registerHandler
, or as a property of the specification object passed toBindings.registerHandlers
, andBindings.load
.
Bugs Fixed
- Do not prevent default input behavior when a binding is unhandled
- Fix case-sensitivity issue in
Key.fromName