()
| 10070 | } |
| 10071 | } |
| 10072 | function handleEsc() { |
| 10073 | if (key == '<Esc>') { |
| 10074 | // Clear input state and get back to normal mode. |
| 10075 | clearInputState(cm); |
| 10076 | if (vim.visualMode) { |
| 10077 | exitVisualMode(cm); |
| 10078 | } else if (vim.insertMode) { |
| 10079 | exitInsertMode(cm); |
| 10080 | } |
| 10081 | return true; |
| 10082 | } |
| 10083 | } |
| 10084 | function doKeyToKey(keys) { |
| 10085 | // TODO: prevent infinite recursion. |
| 10086 | var match; |
no test coverage detected