Support Enter to enter insert mode (#422)

This commit is contained in:
Jonatan Kłosko 2021-07-01 16:38:08 +02:00 committed by GitHub
parent 80f6e987cf
commit c0d9f8253a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -306,7 +306,7 @@ function handleDocumentKeyDown(hook, event) {
restartRuntime(hook);
} else if (keyBuffer.tryMatch(["?"])) {
showShortcuts(hook);
} else if (keyBuffer.tryMatch(["i"])) {
} else if (keyBuffer.tryMatch(["i"]) || key === "Enter") {
cancelEvent(event);
enterInsertMode(hook);
} else if (keyBuffer.tryMatch(["j"])) {