()
| 10057 | findKey: function(cm, key, origin) { |
| 10058 | var vim = maybeInitVimState(cm); |
| 10059 | function handleMacroRecording() { |
| 10060 | var macroModeState = vimGlobalState.macroModeState; |
| 10061 | if (macroModeState.isRecording) { |
| 10062 | if (key == 'q') { |
| 10063 | macroModeState.exitMacroRecordMode(); |
| 10064 | clearInputState(cm); |
| 10065 | return true; |
| 10066 | } |
| 10067 | if (origin != 'mapping') { |
| 10068 | logKey(macroModeState, key); |
| 10069 | } |
| 10070 | } |
| 10071 | } |
| 10072 | function handleEsc() { |
| 10073 | if (key == '<Esc>') { |
| 10074 | // Clear input state and get back to normal mode. |
no test coverage detected