From 1531f1a4a796cd2479ef2b9b32ab7a1a4290a15e Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Fri, 10 Jun 2022 03:39:05 -0700 Subject: [PATCH] Add CTRL-U shortcut to QuickJS REPL --- third_party/quickjs/repl.js | 1 + 1 file changed, 1 insertion(+) diff --git a/third_party/quickjs/repl.js b/third_party/quickjs/repl.js index 37f05837a..df710f3de 100644 --- a/third_party/quickjs/repl.js +++ b/third_party/quickjs/repl.js @@ -756,6 +756,7 @@ import * as os from "os"; "\x12": alert, /* ^R - reverse-search */ "\x13": alert, /* ^S - search */ "\x14": transpose_chars, /* ^T - transpose */ + "\x15": backward_kill_line, /* ^U - clear backwards */ "\x18": reset, /* ^X - cancel */ "\x19": yank, /* ^Y - yank */ "\x1bOA": previous_history, /* ^[OA - up */