()
| 867 | findKey: function(cm, key, origin) { |
| 868 | var vim = maybeInitVimState(cm); |
| 869 | function handleMacroRecording() { |
| 870 | var macroModeState = vimGlobalState.macroModeState; |
| 871 | if (macroModeState.isRecording) { |
| 872 | if (key == 'q') { |
| 873 | macroModeState.exitMacroRecordMode(); |
| 874 | clearInputState(cm); |
| 875 | return true; |
| 876 | } |
| 877 | if (origin != 'mapping') { |
| 878 | logKey(macroModeState, key); |
| 879 | } |
| 880 | } |
| 881 | } |
| 882 | function handleEsc() { |
| 883 | if (key == '<Esc>') { |
| 884 | // Clear input state and get back to normal mode. |
no test coverage detected