(clickHandler)
| 51 | } |
| 52 | |
| 53 | export function getEnterKeyHandler(clickHandler) { |
| 54 | return (e)=>{ |
| 55 | if(e.code === 'Enter'){ |
| 56 | e.preventDefault(); |
| 57 | clickHandler(e); |
| 58 | } |
| 59 | }; |
| 60 | } |
| 61 | |
| 62 | // Convert shortcut obj to codemirror key format |
| 63 | export function toCodeMirrorKey(obj) { |
no outgoing calls
no test coverage detected