marijnh/CodeMirror — pull request #1439 by lynschinzer (2013-04-08 11:16:12+00:00)
Title: [show-hint addon] Let default keyMap resuable by custom key map

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