From 7fd849d81e2249f3ad6868333502f504b3402d7d Mon Sep 17 00:00:00 2001 From: cylgom Date: Mon, 3 Feb 2020 08:51:05 +0100 Subject: [PATCH] add ctrl-u input clearing --- src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.c b/src/main.c index 6ab8ea83..254026c4 100644 --- a/src/main.c +++ b/src/main.c @@ -216,6 +216,12 @@ int main(int argc, char** argv) case TB_KEY_CTRL_C: run = false; break; + case TB_KEY_CTRL_U: + if (active_input > 0) + { + input_text_clear(input_structs[active_input]); + } + break; case TB_KEY_ARROW_UP: if (active_input > 0) {