codecombat / treema

jQuery plugin that generates HTML interfaces to edit JSON data defined by json-schema.
http://codecombat.github.io/treema/
MIT License
152 stars 36 forks source link

Added del button support for deletion #16

Closed rubenvereecken closed 10 years ago

rubenvereecken commented 10 years ago

46 is the actual DEL button

sderickson commented 10 years ago

This won't have any effect, I think. Check out the JS the CS turns into:

e.which === 8 || 46 && !e.heldDown

It needs to be something like

e.which in [8, 46] and !e.heldDown
rubenvereecken commented 10 years ago

Quite right, I changed it.