(cm, name, handle)
| 9769 | } |
| 9770 | |
| 9771 | function lookupKeyForEditor(cm, name, handle) { |
| 9772 | for (var i = 0; i < cm.state.keyMaps.length; i++) { |
| 9773 | var result = lookupKey(name, cm.state.keyMaps[i], handle, cm) |
| 9774 | if (result) { |
| 9775 | return result |
| 9776 | } |
| 9777 | } |
| 9778 | return (cm.options.extraKeys && lookupKey(name, cm.options.extraKeys, handle, cm)) || lookupKey(name, cm.options.keyMap, handle, cm) |
| 9779 | } |
| 9780 | |
| 9781 | // Note that, despite the name, this function is also used to check |
| 9782 | // for bound mouse clicks. |
no test coverage detected