Utilities/js: Make it possible to exit via two consecutive ^C's

Apparently this is common in the js repl world.
Fixes #743.
This commit is contained in:
Ali Mohammad Pur
2024-07-26 00:36:15 +02:00
committed by Sam Atkins
parent a6ebd100ec
commit d3f089dc26
5 changed files with 18 additions and 12 deletions

View File

@@ -7,10 +7,6 @@
#include <AK/Debug.h>
#include <LibLine/Editor.h>
namespace {
constexpr u32 ctrl(char c) { return c & 0x3f; }
}
namespace Line {
void KeyCallbackMachine::register_key_input_callback(Vector<Key> keys, Function<bool(Editor&)> callback)