marijnh/CodeMirror — pull request #1440 by lynschinzer (2013-04-08 11:33:25+00:00)
Title: [show-hint addon] Fix default keymap not reusable by customKeys

The code /^(Up|Down|Enter|Esc)$/.test(`key`) only prevents users from overwriting the default keymap, I believe this was not it is intended to do. By changing `key` to `val`, the default keymap now becomes rebind-able to the customKeys.