define_key_internal: make undefine_key work with predicate bindings
commitab8fc0178d8a301eb5dc3154e6fecfde78534792
authorJohn Foerch <jjfoerch@earthlink.net>
Thu, 22 Jul 2010 15:36:47 +0000 (22 11:36 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Thu, 22 Jul 2010 15:39:07 +0000 (22 11:39 -0400)
treeab1061ba63c97cfc69f93d3be3d9ca2f3ba2d16c
parent0b1d5e2141aba460f5b9738c7de97863caed4521
define_key_internal: make undefine_key work with predicate bindings

there were two bugs with undefine_key when called for a predicate binding.
first, if no binding was present, a new empty binding would be added.
second, if a binding was present, it would be replaced by 'undefined'
instead of removed from the list of predicate bindings.  this patch fixes
both of those cases.
modules/keymap.js