(cm, name, handle)
| 7125 | } |
| 7126 | |
| 7127 | function lookupKeyForEditor(cm, name, handle) { |
| 7128 | for (var i = 0; i < cm.state.keyMaps.length; i++) { |
| 7129 | var result = lookupKey(name, cm.state.keyMaps[i], handle, cm); |
| 7130 | if (result) { return result } |
| 7131 | } |
| 7132 | return (cm.options.extraKeys && lookupKey(name, cm.options.extraKeys, handle, cm)) |
| 7133 | || lookupKey(name, cm.options.keyMap, handle, cm) |
| 7134 | } |
| 7135 | |
| 7136 | // Note that, despite the name, this function is also used to check |
| 7137 | // for bound mouse clicks. |
no test coverage detected