Skip to content

Commit

Permalink
add ctrl-u input clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
cylgom committed Feb 3, 2020
1 parent 8b5ad0b commit 7fd849d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 7fd849d

Please sign in to comment.