()
| 880 | } |
| 881 | } |
| 882 | function handleEsc() { |
| 883 | if (key == '<Esc>') { |
| 884 | // Clear input state and get back to normal mode. |
| 885 | clearInputState(cm); |
| 886 | if (vim.visualMode) { |
| 887 | exitVisualMode(cm); |
| 888 | } else if (vim.insertMode) { |
| 889 | exitInsertMode(cm); |
| 890 | } |
| 891 | return true; |
| 892 | } |
| 893 | } |
| 894 | function doKeyToKey(keys) { |
| 895 | // TODO: prevent infinite recursion. |
| 896 | var match; |
no test coverage detected